Re: Identifying ALTER TABLE "sub-command"

2018-01-11 Thread Alvaro Herrera
Jeremy Finzel wrote: > 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.

Re: Identifying ALTER TABLE "sub-command"

2018-01-11 Thread Sergei Kornilov
HelloYou can start with functions ATPrepCmd and ATExecCmd in src/backend/commands/tablecmds.cAlso note, one alter table statement can have multiple different actions. Regards, Sergei11.01.2018, 18:56, "Jeremy Finzel" :Hello -I have found that in leveraging the parser code to decode DDL SQL, it is v