Thread
Commits
-
Doc: clarify when table rewrites happen with column addition and DEFAULT
- 80aa66392ec8 11.5 landed
- b990cc38dc64 12.0 landed
- 1300fa66b2f3 13.0 landed
-
Documentation fix for adding a column with a default value
Daniel Westermann (DWE) <daniel.westermann@dbi-services.com> — 2019-07-15T11:01:00Z
Hi, the tip in the "Adding a column" section is not true anymore since PostgreSQL 11: https://www.postgresql.org/docs/current/ddl-alter.html#DDL-ALTER-ADDING-A-COLUMN Attached a patch proposal for this. Regards Daniel
-
Fw: Documentation fix for adding a column with a default value
Daniel Westermann (DWE) <daniel.westermann@dbi-services.com> — 2019-07-17T06:42:13Z
>______________________________________ >From: Daniel Westermann (DWE) >Sent: Monday, July 15, 2019 13:01 >To: pgsql-hackers@postgresql.org >Subject: Documentation fix for adding a column with a default value > >Hi, > >the tip in the "Adding a column" section is not true anymore since PostgreSQL 11: > >https://www.postgresql.org/docs/current/ddl-alter.html#DDL-ALTER-ADDING-A-COLUMN<https://www.postgresql.org/docs/current/ddl-alter.html#DDL-ALTER-ADDING-A-COLUMN> > >Attached a patch proposal for this. Seems the first mail didn't make it ... Regards Daniel
-
Re: Fw: Documentation fix for adding a column with a default value
Ian Barwick <ian.barwick@2ndquadrant.com> — 2019-07-17T06:54:13Z
On Wed, 17 Jul 2019 at 15:42, Daniel Westermann (DWE) < daniel.westermann@dbi-services.com> wrote: > >______________________________________ > >From: Daniel Westermann (DWE) > >Sent: Monday, July 15, 2019 13:01 > >To: pgsql-hackers@postgresql.org > >Subject: Documentation fix for adding a column with a default value > > > >Hi, > > > >the tip in the "Adding a column" section is not true anymore since > PostgreSQL 11: > > > > >https://www.postgresql.org/docs/current/ddl-alter.html#DDL-ALTER-ADDING-A-COLUMN > <https://www.postgresql.org/docs/current/ddl-alter.html#DDL-ALTER-ADDING-A-COLUMN> > > > >Attached a patch proposal for this. > > Seems the first mail didn't make it ... > Actually it did, I was about to reply to it :) The suggested change pares down the "Tip" to more of a brief "Note", which IMHO is a bit terse for that section of the documentation (which has more of a tutorial character), and the contents of the original tip basically still apply for volatile default values anyway. I've attached another suggestion for rewording this which should also make the mechanics of the operation a little clearer. Regards Ian Barwick -- Ian Barwick https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
-
Re: Fw: Documentation fix for adding a column with a default value
Daniel Westermann (DWE) <daniel.westermann@dbi-services.com> — 2019-07-17T09:08:36Z
>> Seems the first mail didn't make it ... >Actually it did, I was about to reply to it :) > >The suggested change pares down the "Tip" to more of a brief "Note", which IMHO is a bit >terse for that section of the documentation (which has more of a tutorial character), >and the contents of the original tip basically still apply for volatile default values >anyway. > >I've attached another suggestion for rewording this which should also make the >mechanics of the operation a little clearer. Thank you, that better explains it. Looks good to me. Regards Daniel
-
Re: Fw: Documentation fix for adding a column with a default value
Daniel Westermann (DWE) <daniel.westermann@dbi-services.com> — 2019-07-18T15:46:00Z
>>The suggested change pares down the "Tip" to more of a brief "Note", which IMHO is a bit >>terse for that section of the documentation (which has more of a tutorial character), >>and the contents of the original tip basically still apply for volatile default values >>anyway. >> >>I've attached another suggestion for rewording this which should also make the >>mechanics of the operation a little clearer. >Thank you, that better explains it. Looks good to me. Shouldn't we add that to the current commit fest? Regards Daniel
-
Re: Documentation fix for adding a column with a default value
Daniel Gustafsson <daniel@yesql.se> — 2019-07-18T15:51:26Z
> On 18 Jul 2019, at 17:46, Daniel Westermann (DWE) <daniel.westermann@dbi-services.com> wrote: > >>> The suggested change pares down the "Tip" to more of a brief "Note", which IMHO is a bit >>> terse for that section of the documentation (which has more of a tutorial character), >>> and the contents of the original tip basically still apply for volatile default values >>> anyway. >>> >>> I've attached another suggestion for rewording this which should also make the >>> mechanics of the operation a little clearer. > >> Thank you, that better explains it. Looks good to me. > > Shouldn't we add that to the current commit fest? The current commitfest is closed for new additions, but please add it to the next one (2019-09) and it will be picked up then. cheers ./daniel
-
Re: Documentation fix for adding a column with a default value
Ian Barwick <ian.barwick@2ndquadrant.com> — 2019-07-19T00:04:03Z
On 7/19/19 12:51 AM, Daniel Gustafsson wrote: >> On 18 Jul 2019, at 17:46, Daniel Westermann (DWE) <daniel.westermann@dbi-services.com> wrote: >> >>>> The suggested change pares down the "Tip" to more of a brief "Note", which IMHO is a bit >>>> terse for that section of the documentation (which has more of a tutorial character), >>>> and the contents of the original tip basically still apply for volatile default values >>>> anyway. >>>> >>>> I've attached another suggestion for rewording this which should also make the >>>> mechanics of the operation a little clearer. >> >>> Thank you, that better explains it. Looks good to me. >> >> Shouldn't we add that to the current commit fest? > > The current commitfest is closed for new additions, but please add it to the > next one (2019-09) and it will be picked up then. To me it looks like a minor documentation correction to fix an omission from a patch already in PostgreSQL. Regards Ian Barwick -- Ian Barwick https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
-
Re: Documentation fix for adding a column with a default value
Michael Paquier <michael@paquier.xyz> — 2019-07-19T02:46:27Z
On Fri, Jul 19, 2019 at 09:04:03AM +0900, Ian Barwick wrote: > To me it looks like a minor documentation correction to fix an omission > from a patch already in PostgreSQL. I think that it is better to register it in the commit fest anyway so as we don't lose track of it. Things tend to get lost easily as this list has a lot of traffic. I have been looking at the original patch from Daniel and got surprised by the simple removal of the paragraph as this applies to 16828d5c where using volatile defaults still require a table rewrite. Well, this just comes back to the point raised by Ian upthread ;p Except for a couple of misplaced and missing markups and one typo, the new paragraph looked fine, so committed down to v11 after fixing the whole. -- Michael