Disallow user-created replication origins named "pg_xxx".

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a1e61badf97bc446053145ba40de6db835678ce3
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2019-06-29T14:30:08Z
Releases: 12.0
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

Files

PathChange+/−
src/backend/replication/logical/origin.c modified +10 −0

Discussion