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
Author: "David G. Johnston"
Discussion: https://postgr.es/m/174393459040.678.17810152410419444783@wrigleys.postgresql.org
Backpatch-through: 13
ALTER TABLE products DROP CONSTRAINT some_name;
- (If you are dealing with a generated constraint name like $2,
- don't forget that you'll need to double-quote it to make it a valid
- identifier.)