Identifying ALTER TABLE "sub-command"

Поиск
Список
Период
Сортировка
От Jeremy Finzel
Тема Identifying ALTER TABLE "sub-command"
Дата
Msg-id CAMa1XUigsBC_kmeZaRte658k8L4S5q5fycvLk1eVKyYJn54U6g@mail.gmail.com
обсуждение исходный текст
Ответы Re: Identifying ALTER TABLE "sub-command"
Список pgsql-hackers
Hello -

I have found that in leveraging the parser code to decode DDL SQL, it is very easy to get which type of general command is being issued with CreateCommandTag(parsetree).  However, is there a way (or a starting point) to identify the sub-command as well i.e. ENABLE TRIGGER, ADD FOREIGN KEY, etc.?

Any direction is much appreciated.

Thanks,
Jeremy

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: CUBE seems a bit confused about ORDER BY
Следующее
От: Tom Lane
Дата:
Сообщение: Re: The first function call