]> granicus.if.org Git - postgresql/commit
psql: show cloned triggers in partitions
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 29 Jun 2018 15:40:36 +0000 (11:40 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 29 Jun 2018 15:53:22 +0000 (11:53 -0400)
commitbc87f22ef6ef1137909ed7363976c67cf1efa7da
treef5eb81a3c9247665dbf516379dcb84270ea68fe3
parent41372071dfaab97a1a8dca83e32b88413460f477
psql: show cloned triggers in partitions

In a partition, row triggers that had been cloned from their parent
partitioned table would not be listed at all in psql's \d, which could
surprise users, per insistent complaint from Ashutosh Bapat (though his
aim was elsewhere).  The simplest possible fix, suggested by Peter
Eisentraut, seems to be to list triggers marked as internal if they have
a row in pg_depend that points to some other trigger.

Author: Álvaro Herrera
Discussion: https://postgr.es/m/20180618165910.p26vhk7dpq65ix54@alvherre.pgsql
src/bin/psql/describe.c