Re: Deparsing DDL command strings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Deparsing DDL command strings
Дата
Msg-id 8117.1349445783@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Deparsing DDL command strings  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Ответы Re: Deparsing DDL command strings
Re: Deparsing DDL command strings
Список pgsql-hackers
Dimitri Fontaine <dimitri@2ndQuadrant.fr> writes:
> So I have a Node *parsetree containing some CHECK and DEFAULT raw
> expressions to work with. Those can reference non existing tables,
> either to-be-created or already-dropped. 

Why don't you just pass the original query string, instead of writing
a mass of maintenance-requiring new code to reproduce it?

This would require (1) making sure the query string is still available
where needed.  I think we are 99% of the way there but maybe not 100%.
(2) being able to identify the substring corresponding to the current
command, when we're processing a multi-command string.  The parser could
easily provide that, I think --- we've just never insisted that it do
so before.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: zafer yagmuroglu
Дата:
Сообщение: FW: PQntuples and PQgetvalue problem.
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Deparsing DDL command strings