]> granicus.if.org Git - postgresql/commit
Disallow user-created replication origins named "pg_xxx".
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 29 Jun 2019 14:30:08 +0000 (10:30 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 29 Jun 2019 14:30:08 +0000 (10:30 -0400)
commita1e61badf97bc446053145ba40de6db835678ce3
tree6a4a8c2123d783c2b2761bd2db40cfefb59d3c46
parentc0faa727507ed34db0d02769d21bbaaf9605e2e4
Disallow user-created replication origins named "pg_xxx".

Since we generate such names internally, it seems like a good idea
to have a policy of disallowing them for user use, as we do for many
other object types.  Otherwise attempts to use them will randomly
fail due to collisions with internally-generated names.

Discussion: https://postgr.es/m/3606.1561747369@sss.pgh.pa.us
src/backend/replication/logical/origin.c