Re: [PATCH] Add pg_get_trigger_ddl() to retrieve the CREATE TRIGGER statement

From: Philip Alger <paalger0(at)gmail(dot)com>
To: Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Cary Huang <cary(dot)huang(at)highgo(dot)ca>, jian he <jian(dot)universality(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Add pg_get_trigger_ddl() to retrieve the CREATE TRIGGER statement
Date: 2025-10-18 21:34:59
Message-ID: CAPXBC8LQEi5+jMj3GjkOj3DA0Tw5s0hAETPiDGQckDs91rQkPA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Jim,

You're probably initialising the buffer a bit too early:
>

Attached is v7. Moved the `initStringInfo` as suggested and reran tests.

--
Best,
Phil Alger

Attachment Content-Type Size
v7-0001-Add-pg_get_trigger_ddl-function.patch application/octet-stream 18.3 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Corey Huinker 2025-10-19 00:27:58 Re: Extended Statistics set/restore/clear functions.
Previous Message Andrew Kim 2025-10-18 21:30:21 Re: Proposal for enabling auto-vectorization for checksum calculations