From: | Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: "SQL sentence"? |
Date: | 2017-02-18 06:18:20 |
Message-ID: | 54ff473a-f8a7-ecd9-6a80-809182a60e09@BlueTreble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2/17/17 10:46 PM, Alvaro Herrera wrote:
> Jim Nasby wrote:
>> On 2/17/17 10:19 PM, Alvaro Herrera wrote:
>>>> (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.
>> Yeah. It doesn't seem unreasonable for a user to want to get at that info.
> Sure. We have the extension that turned the command into JSON. It's
> still an unfinished patch, sadly, even though Alex Shulgin spent a lot
> of effort trying to get it finished. It is still missing a nontrivial
> amount of work, but within reach ISTM.
I wonder if there's some generic way we could make C structs to JSON.
IIRC there's other places where that ability would be handly.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2017-02-18 06:32:22 | Re: Parallel Index-only scan |
Previous Message | Alvaro Herrera | 2017-02-18 04:46:54 | Re: "SQL sentence"? |