pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Seeing where a given trigger function is in use? 2+ messages / 2 participants [nested] [flat]
* Seeing where a given trigger function is in use? @ 2020-08-14 22:21 Wells Oliver <wells.oliver@gmail.com> 2020-08-14 22:55 ` Re: Seeing where a given trigger function is in use? Jerry Sievers <gsievers19@comcast.net> 0 siblings, 1 reply; 2+ messages in thread From: Wells Oliver @ 2020-08-14 22:21 UTC (permalink / raw) To: pgsql-admin Trying to track down every table that is using a certain trigger function, what's the best way to do that? -- Wells Oliver wells.oliver@gmail.com <wellsoliver@gmail.com> ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Seeing where a given trigger function is in use? 2020-08-14 22:21 Seeing where a given trigger function is in use? Wells Oliver <wells.oliver@gmail.com> @ 2020-08-14 22:55 ` Jerry Sievers <gsievers19@comcast.net> 0 siblings, 0 replies; 2+ messages in thread From: Jerry Sievers @ 2020-08-14 22:55 UTC (permalink / raw) To: Wells Oliver <wells.oliver@gmail.com>; +Cc: pgsql-admin Wells Oliver <wells.oliver@gmail.com> writes: > Trying to track down every table that is using a certain trigger > function, what's the best way to do that? Have a look at the fields tgrelid and tgfoid in your pg_trigger catalog where you will be enlightened :-) For starters... select tgrelid::regclass, tgfoid::regproc from pg_trigger; Enjoy! > > -- > Wells Oliver > wells.oliver@gmail.com > > -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-08-14 22:55 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-08-14 22:21 Seeing where a given trigger function is in use? Wells Oliver <wells.oliver@gmail.com> 2020-08-14 22:55 ` Jerry Sievers <gsievers19@comcast.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox