postgresql/src
Tom Lane b23cd185fd Remove logic for converting a table to a view.
Up to now we have allowed manual creation of an ON SELECT rule on
a table to convert it into a view.  That was never anything but a
horrid, error-prone hack though.  pg_dump used to rely on that
behavior to deal with cases involving circular dependencies,
where a dependency loop could be broken by separating the creation
of a view from installation of its ON SELECT rule.  However, we
changed pg_dump to use CREATE OR REPLACE VIEW for that in commit
d8c05aff5 (which was later back-patched as far as 9.4), so there's
not a good argument anymore for continuing to support the behavior.

The proximate reason for axing it now is that we found that the
new statistics code has failure modes associated with the relkind
change caused by this behavior.  We'll patch around that in v15,
but going forward it seems like a better idea to get rid of the
need to support relkind changes.

Discussion: https://postgr.es/m/CALDaNm2yXz+zOtv7y5zBd5WKT8O0Ld3YxikuU3dcyCvxF7gypA@mail.gmail.com
2022-12-02 12:14:32 -05:00
..
backend Remove logic for converting a table to a view. 2022-12-02 12:14:32 -05:00
bin Report incompatible roles in pg_upgrade checking 2022-12-02 13:10:21 +01:00
common Refactor code parsing compression option values (-Z/--compress) 2022-11-30 09:34:32 +09:00
fe_utils meson: Add support for building with precompiled headers 2022-10-06 17:19:30 -07:00
include Generalize ri_RootToPartitionMap to use for non-partition children 2022-12-02 10:35:55 +01:00
interfaces Fix comment in fe-auth-scram.c 2022-11-30 08:37:59 +09:00
makefiles autoconf: Rely on ar supporting index creation 2022-10-07 11:53:39 -07:00
pl Allow building with MSVC and Strawberry perl 2022-11-25 15:28:38 -05:00
port autoconf: Unify CFLAGS_SSE42 and CFLAGS_ARMV8_CRC32C 2022-12-01 18:46:55 -08:00
template Move darwin sysroot determination into separate file 2022-09-01 16:54:19 -07:00
test Remove logic for converting a table to a view. 2022-12-02 12:14:32 -05:00
timezone Remove unneeded includes of <sys/stat.h> 2022-11-05 12:31:28 +09:00
tools Switch pg_dump to use compression specifications 2022-12-02 10:45:02 +09:00
tutorial Doc: sync src/tutorial/basics.source with SGML documentation. 2022-11-19 13:09:14 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in autoconf: Don't AC_SUBST() LD in configure 2022-12-01 19:03:26 -08:00
Makefile.shlib autoconf: Rely on ar supporting index creation 2022-10-07 11:53:39 -07:00
meson.build meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
nls-global.mk Fix for make unportability 2022-07-13 09:15:01 +02:00