postgresql/src/backend/catalog
Tom Lane 55d26ff638 Rationalize handling of single and double quotes in bootstrap data.
Change things around so that proper quoting of values interpolated into
the BKI data by initdb is the responsibility of initdb, not something
we half-heartedly handle by putting double quotes into the raw BKI data.
(Note: experimentation shows that it still doesn't work to put a double
quote into the initial superuser username, but that's the fault of
inadequate quoting while interpolating the name into SQL scripts;
the BKI aspect of it works fine now.)

Having done that, we can remove the special-case handling of values
that look like "something" from genbki.pl, and instead teach it to
escape double --- and single --- quotes properly.  This removes the
nowhere-documented need to treat those specially in the BKI source
data; whatever you write will be passed through unchanged into the
inserted data value, modulo Perl's rules about single-quoted strings.

Add documentation explaining the (pre-existing) handling of backslashes
in the BKI data.

Per an earlier discussion with John Naylor.

Discussion: https://postgr.es/m/CAJVSVGUNao=-Q2-vAN3PYcdF5tnL5JAHwGwzZGuYHtq+Mk_9ng@mail.gmail.com
2018-04-17 19:53:50 -04:00
..
.gitignore Replace our traditional initial-catalog-data format with a better design. 2018-04-08 13:17:27 -04:00
aclchk.c
catalog.c Do not select new object OIDs that match recently-dead entries. 2018-04-11 17:41:22 -04:00
Catalog.pm Rationalize handling of array type names in bootstrap data. 2018-04-17 18:29:11 -04:00
dependency.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
genbki.pl Rationalize handling of single and double quotes in bootstrap data. 2018-04-17 19:53:50 -04:00
heap.c Reorganize partitioning code 2018-04-14 21:12:14 -03:00
index.c Cleanup covering infrastructure 2018-04-12 16:37:22 +03:00
indexing.c Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
information_schema.sql
Makefile Replace our traditional initial-catalog-data format with a better design. 2018-04-08 13:17:27 -04:00
namespace.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
objectaccess.c
objectaddress.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
partition.c Reorganize partitioning code 2018-04-14 21:12:14 -03:00
pg_aggregate.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_collation.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_constraint.c Reorganize partitioning code 2018-04-14 21:12:14 -03:00
pg_conversion.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_db_role_setting.c
pg_depend.c
pg_enum.c
pg_inherits.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_largeobject.c
pg_namespace.c
pg_operator.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_proc.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_publication.c
pg_range.c
pg_shdepend.c
pg_subscription.c
pg_type.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
sql_feature_packages.txt
sql_features.txt Revert MERGE patch 2018-04-12 11:22:56 +01:00
storage.c Further cleanup of client dependencies on src/include/catalog headers. 2018-04-09 14:39:58 -04:00
system_views.sql Revert "Allow on-line enabling and disabling of data checksums" 2018-04-09 19:03:42 +02:00
toasting.c Rename IndexInfo.ii_KeyAttrNumbers array 2018-04-12 13:02:45 +03:00