Re: [HACKERS] "SQL sentence"?
От | Alvaro Herrera |
---|---|
Тема | Re: [HACKERS] "SQL sentence"? |
Дата | |
Msg-id | 20170218041923.ph5piq7vtg6xwvge@alvherre.pgsql обсуждение исходный текст |
Ответ на | [HACKERS] "SQL sentence"? (Jim Nasby <Jim.Nasby@BlueTreble.com>) |
Ответы |
Re: [HACKERS] "SQL sentence"?
|
Список | 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
В списке pgsql-hackers по дате отправления: