Re: Adding Column on Huge Table

From: Andrzej Zawadzki <zawadaa(at)gmail(dot)com>
To: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Adding Column on Huge Table
Date: 2019-03-19 20:53:16
Message-ID: 5b26ed21-a7b5-6c1b-af10-10df4d44a4f7@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 19.03.2019 16:56, Moin Akther wrote:<br>
</div>
<blockquote type="cite"
cite="mid:HK0PR03MB2977B9460C4CC7D0383D05BDAD400(at)HK0PR03MB2977(dot)apcprd03(dot)prod(dot)outlook(dot)com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<div style="font-family: &quot;Segoe UI&quot;, &quot;Helvetica
Neue&quot;, sans-serif; font-size: 11pt; color: rgb(38, 114,
236);">
Dear Experts,</div>
<div style="font-family: &quot;Segoe UI&quot;, &quot;Helvetica
Neue&quot;, sans-serif; font-size: 11pt; color: rgb(38, 114,
236);">
<br>
</div>
<div style="font-family: &quot;Segoe UI&quot;, &quot;Helvetica
Neue&quot;, sans-serif; font-size: 11pt; color: rgb(38, 114,
236);">
We want to add a column on table size of 1.5TB, we have to
perform this activity with minimal downtime. </div>
<div style="font-family: &quot;Segoe UI&quot;, &quot;Helvetica
Neue&quot;, sans-serif; font-size: 11pt; color: rgb(38, 114,
236);">
<br>
</div>
<div style="font-family: &quot;Segoe UI&quot;, &quot;Helvetica
Neue&quot;, sans-serif; font-size: 11pt; color: rgb(38, 114,
236);">
What are the best practises to add a column on huge table ?</div>
<div style="font-family: &quot;Segoe UI&quot;, &quot;Helvetica
Neue&quot;, sans-serif; font-size: 11pt; color: rgb(38, 114,
236);">
<br>
</div>
<div style="font-family: &quot;Segoe UI&quot;, &quot;Helvetica
Neue&quot;, sans-serif; font-size: 11pt; color: rgb(38, 114,
236);">
How much time alter statement will take to add column ?</div>
<div style="font-family: &quot;Segoe UI&quot;, &quot;Helvetica
Neue&quot;, sans-serif; font-size: 11pt; color: rgb(38, 114,
236);">
<br>
</div>
<div style="font-family: &quot;Segoe UI&quot;, &quot;Helvetica
Neue&quot;, sans-serif; font-size: 11pt; color: rgb(38, 114,
236);">
Any alternate solution other than alter statement to add column
?</div>
<div style="font-family: &quot;Segoe UI&quot;, &quot;Helvetica
Neue&quot;, sans-serif; font-size: 11pt; color: rgb(38, 114,
236);">
<br>
</div>
<div style="font-family: &quot;Segoe UI&quot;, &quot;Helvetica
Neue&quot;, sans-serif; font-size: 11pt; color: rgb(38, 114,
236);">
Will adding a new column on a huge table generate huge WAL files
?</div>
<div style="font-family: &quot;Segoe UI&quot;, &quot;Helvetica
Neue&quot;, sans-serif; font-size: 11pt; color: rgb(38, 114,
236);">
<br>
</div>
<div id="signature">
<div id="divtagdefaultwrapper" dir="ltr" style=""><font
face="Calibri, Arial, Helvetica, sans-serif, EmojiFont,
Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI
Symbol, Android Emoji, EmojiSymbols" color="#2672ec"><span
id="ms-rterangepaste-start" style="font-size: 12pt;"></span></font></div>
</div>
</blockquote>
<p>No offense, but don't you have any test environment?</p>
<p>Try that or maybe you have so show times.</p>
<p><br>
</p>
<p>-- <br>
</p>
<p>Andrzej Zawadzki<br>
</p>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 3.6 KB

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Thomas Kellerer 2019-03-19 21:06:12 Re: Adding Column on Huge Table
Previous Message Alex Balashov 2019-03-19 20:52:51 Re: Adding Column on Huge Table