Re: "SQL sentence"?

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: "SQL sentence"?
Date: 2017-02-18 04:19:23
Message-ID: 20170218041923.ph5piq7vtg6xwvge@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jim Nasby wrote:
> I'm confused by this:
>
> "pg_event_trigger_ddl_commands returns one row for each base command
> executed; some commands that are a single SQL sentence may return more than
> one row."
>
> What is a "SQL sentence"?

I meant "a single SQL command". The word "sentence" probably just
slipped through. Will fix.

> (FWIW, I'm wondering because I was just looking to see why there's no
> details for things like altering a column in a table.)

Do you mean you want to have access to the details of the alter table
operations being executed? There's no structured data for that; you
need to write a C function to examine the pg_ddl_command opaque column.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2017-02-18 04:36:23 Re: "SQL sentence"?
Previous Message Jim Nasby 2017-02-18 04:14:02 Re: Official adoption of PGXN