mirror of
https://github.com/postgres/postgres.git
synced 2026-04-28 17:49:35 -04:00
Fix typo in foreign_key.sql
Introduced by eec0040c4b.
Author: Chao Li <lic@highgo.com>
Discussion: https://postgr.es/m/CAEoWx2kKMdtWKQiYNuwG2L41YwHA7G3sUsRfD9esPJwZyX1+Eg@mail.gmail.com
Backpatch-through: 18
This commit is contained in:
parent
5a900d6482
commit
d0c12b98f2
2 changed files with 2 additions and 2 deletions
|
|
@ -1750,7 +1750,7 @@ Indexes:
|
|||
Referenced by:
|
||||
TABLE "fk_partitioned_fk" CONSTRAINT "fk_partitioned_fk_a_b_fkey" FOREIGN KEY (a, b) REFERENCES fk_notpartitioned_pk(a, b)
|
||||
|
||||
-- Check the exsting FK trigger
|
||||
-- Check the existing FK trigger
|
||||
SELECT conname, tgrelid::regclass as tgrel, regexp_replace(tgname, '[0-9]+', 'N') as tgname, tgtype
|
||||
FROM pg_trigger t JOIN pg_constraint c ON (t.tgconstraint = c.oid)
|
||||
WHERE tgrelid IN (SELECT relid FROM pg_partition_tree('fk_partitioned_fk'::regclass)
|
||||
|
|
|
|||
|
|
@ -1296,7 +1296,7 @@ UPDATE fk_notpartitioned_pk SET b = 2504 WHERE a = 2500;
|
|||
-- check psql behavior
|
||||
\d fk_notpartitioned_pk
|
||||
|
||||
-- Check the exsting FK trigger
|
||||
-- Check the existing FK trigger
|
||||
SELECT conname, tgrelid::regclass as tgrel, regexp_replace(tgname, '[0-9]+', 'N') as tgname, tgtype
|
||||
FROM pg_trigger t JOIN pg_constraint c ON (t.tgconstraint = c.oid)
|
||||
WHERE tgrelid IN (SELECT relid FROM pg_partition_tree('fk_partitioned_fk'::regclass)
|
||||
|
|
|
|||
Loading…
Reference in a new issue