summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2025-04-10 14:49:10 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2025-04-10 14:49:27 -0400
commitfc44ae215fcb1ca88c7cd0c64ffe812fbaba9a37 (patch)
treed43dd29d476aab2589a786560e9241745db4c525
parent9f21be08e884c75089e939bae86a47eca176e0af (diff)
Doc: remove long-obsolete advice about generated constraint names.
It's been twenty years since we generated constraint names that look like "$N". So this advice about double-quoting such names is well past its sell-by date, and now it merely seems confusing. Reported-by: Yaroslav Saburov <y.saburov@gmail.com> Author: "David G. Johnston" <david.g.johnston@gmail.com> Discussion: https://postgr.es/m/174393459040.678.17810152410419444783@wrigleys.postgresql.org Backpatch-through: 13
-rw-r--r--doc/src/sgml/ddl.sgml3
1 files changed, 0 insertions, 3 deletions
diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml
index dd00bbdaa79..38ece3f4f72 100644
--- a/doc/src/sgml/ddl.sgml
+++ b/doc/src/sgml/ddl.sgml
@@ -1542,9 +1542,6 @@ ALTER TABLE products ALTER COLUMN product_no SET NOT NULL;
<programlisting>
ALTER TABLE products DROP CONSTRAINT some_name;
</programlisting>
- (If you are dealing with a generated constraint name like <literal>$2</literal>,
- don't forget that you'll need to double-quote it to make it a valid
- identifier.)
</para>
<para>