Behaviour adding a column with and without a default (prior to PG11)

2019-09-30 Thread Joe Horsnell
Hi, The documentation (https://www.postgresql.org/docs/10/ddl-alter.html) clearly states that adding a column with a default requires updating all the rows in the table, to store the new column value (this is prior to PG11, obviously). I can understand why this behaviour was required when addin

Re: Behaviour adding a column with and without a default (prior to PG11)

2019-09-30 Thread Joe Horsnell
Thanks for the quick response Tom. Cheers, Joe. On 30/09/2019, 22:19, "Tom Lane" wrote: Joe Horsnell writes: > The documentation (https://www.postgresql.org/docs/10/ddl-alter.html) clearly states that adding a column with a default requires updating all the rows in

Re: Behaviour adding a column with and without a default (prior to PG11)

2019-10-01 Thread Joe Horsnell
imer on my initial email, I tried to stop it! On 30/09/2019, 22:19, "Tom Lane" wrote: Joe Horsnell writes: > The documentation (https://www.postgresql.org/docs/10/ddl-alter.html) clearly states that adding a column with a default requires updating all the rows in the