Re: Schema variables - new implementation for Postgres 15
Justin Pryzby <pryzby@telsasoft.com>
From: Justin Pryzby <pryzby@telsasoft.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Tomas Vondra <tomas.vondra@enterprisedb.com>, Jaime Casanova <jcasanov@systemguards.com.ec>, Erik Rijkers <er@xs4all.nl>, Gilles Darold <gilles@darold.net>, pgsql-hackers@lists.postgresql.org, Michael Paquier <michael@paquier.xyz>, Amit Kapila <amit.kapila16@gmail.com>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, Peter Eisentraut <peter.eisentraut@enterprisedb.com>, Tom Lane <tgl@sss.pgh.pa.us>, Alvaro Herrera <alvherre@2ndquadrant.com>, Robert Haas <robertmhaas@gmail.com>
Date: 2021-12-21T12:36:34Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Allow underscores in integer and numeric constants.
- faff8f8e47f1 16.0 cited
-
Remove special outfuncs/readfuncs handling of RangeVar.catalogname.
- 3cece34be842 16.0 cited
-
Remove extra space from dumped ALTER DEFAULT PRIVILEGES.
- 2af33369e794 16.0 cited
-
Create FKs properly when attaching table as partition
- b0284bfb1db5 16.0 cited
-
psql: improve tab-complete's handling of variant SQL names.
- 02b8048ba5dc 15.0 cited
On Tue, Dec 21, 2021 at 01:29:00PM +0100, Pavel Stehule wrote: > Hi > > út 21. 12. 2021 v 0:09 odesílatel Justin Pryzby <pryzby@telsasoft.com> > napsal: > > > I don't understand what 0002 patch does relative to the 0001 patch. > > Is 0002 to change the error messages from "schema variables" to "session > > variables" , in a separate commit to show that the main patch doesn't > > change > > regression results ? Could you add commit messages ? > > > > I mentioned before that there's a pre-existing use of the phrase "session > > variable", which you should change to something else: > > > > origin:doc/src/sgml/ref/set_role.sgml: <command>SET ROLE</command> does > > not process session variables as specified by > > origin:doc/src/sgml/ref/set_role.sgml- the role's <link > > linkend="sql-alterrole"><command>ALTER ROLE</command></link> settings; > > this only happens during > > origin:doc/src/sgml/ref/set_role.sgml- login. > > > > Maybe "session variable" should be added to the glossary. > > > > The new tests crash if debug_discard_caches=on. > > > > 2021-12-20 16:15:44.476 CST postmaster[7478] LOG: server process (PID > > 7657) was terminated by signal 6: Aborted > > 2021-12-20 16:15:44.476 CST postmaster[7478] DETAIL: Failed process was > > running: DISCARD VARIABLES; > > How do you inject this parameter to regress tests? You can run PGOPTIONS='-c debug_invalidate_caches=1' make check I used make installcheck against a running instance where I'd used ALTER SYSTEM SET debug_discard_caches=on. You can also manually run psql against the .sql file itself. ...which is a good idea since this causes the regression tests take hours. Or just add SET debug_discard_caches=on to your .sql file. -- Justin