Re: Alias collision in `refresh materialized view concurrently`
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Bernd Helmle <mailings@oopsware.de>,
Michael Paquier <michael@paquier.xyz>, Mathis Rudolf <mathis.rudolf@credativ.de>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2021-06-02T00:30:55Z
Lists: pgsql-hackers
On Wed, Jun 2, 2021 at 2:02 AM Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> wrote: > PSA v3 patch. I added a commit message and made some cosmetic adjustments. Reminds me of this fun topic in Lisp: https://en.wikipedia.org/wiki/Hygienic_macro#Strategies_used_in_languages_that_lack_hygienic_macros I wondered if we could find a way to make identifiers that regular queries are prohibited from using, at least by documentation. You could take advantage of the various constraints on unquoted identifiers in the standard (for example, something involving $), but it does seem a shame to remove the ability for users to put absolutely anything except NUL in quoted identifiers. I do wonder if at least using something like _$mv would be slightly more principled than pg_mv_1234, since nothing says pg_XXX is reserved (except in some very specific places like schema names), and the number on the end seems a bit cargo-cultish.
Commits
-
Really fix the ambiguity in REFRESH MATERIALIZED VIEW CONCURRENTLY.
- d33fc411000e 11.13 landed
- c08b3a9eb6cc 9.6.23 landed
- ba9f665a4413 13.4 landed
- ac818984a222 10.18 landed
- 9179a82d7af3 15.0 landed
- 2c915905e3e8 14.0 landed
- 1ff1e4a60646 12.8 landed
-
Reduce risks of conflicts in internal queries of REFRESH MATVIEW CONCURRENTLY
- d9525c46c89d 9.6.23 landed
- 20f70f558172 10.18 landed
- dbc9dbba5652 11.13 landed
- 4ceaa760bd8c 12.8 landed
- 75d66d10e0e3 13.4 landed
- 187682c32173 14.0 landed