| From: | "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> |
|---|---|
| To: | "Patches" <pgsql-patches(at)postgresql(dot)org> |
| Subject: | pg_get_triggerdef |
| Date: | 2003-03-11 05:28:04 |
| Message-ID: | 01e801c2e78e$fe2a1be0$6500a8c0@fhp.internal |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
This patch creates a function named pg_get_triggerdef that takes the oid of
a trigger as its parameter. It is basically copied from the pg_dump code.
Once we're certain it's perfect, we could probably save some effort in
pg_dump by using the function.
Once it's committed, I will be modifying psql to show trigger definitions,
instead of just the name.
I have tested it with a bunch of different triggers, parameters, constraint
triggers, weird names, different functions, etc and it seems to be OK.
Cheers,
Chris
| Attachment | Content-Type | Size |
|---|---|---|
| pg_get_triggerdef.txt | text/plain | 13.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Christopher Kings-Lynne | 2003-03-11 05:48:21 | pg_get_triggerdef doc patch |
| Previous Message | Christopher Kings-Lynne | 2003-03-11 01:25:34 | Re: SQL99 ARRAY support proposal |