Re: Schema variables - new implementation for Postgres 15
Wolfgang Walther <walther@technowledgy.de>
From: walther@technowledgy.de
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Peter Eisentraut <peter@eisentraut.org>,
Pavel Stehule <pavel.stehule@gmail.com>,
Peter Eisentraut <peter.eisentraut@enterprisedb.com>,
Sergey Shinderuk <s.shinderuk@postgrespro.ru>,
Tomas Vondra <tomas.vondra@enterprisedb.com>,
Julien Rouhaud <rjuju123@gmail.com>, dean.a.rasheed@gmail.com, er@xs4all.nl,
joel@compiler.org, pgsql-hackers@lists.postgresql.org,
Dmitry Dolgov <9erthalion6@gmail.com>
Date: 2024-05-22T18:21:08Z
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
Alvaro Herrera: > Perhaps the solution to all this is to avoid having the variables be > implicitly present in the range table of all queries. Instead, if you > need a variable's value, then you need to add the variable to the FROM > clause; +1 This should make it easier to work with composite type schema variables in some cases. It could also enable schema qualifying of schema variables, or at least make it easier to do, I think. In this case variables would share the same namespace as tables and views, right? So I could not create a variable with the same name as another table. Which is a good thing, I guess. Not sure how it's currently implemented in the patch. Best, Wolfgang