Identifying ALTER TABLE "sub-command" - Mailing list pgsql-hackers

From Jeremy Finzel
Subject Identifying ALTER TABLE "sub-command"
Date
Msg-id CAMa1XUigsBC_kmeZaRte658k8L4S5q5fycvLk1eVKyYJn54U6g@mail.gmail.com
Whole thread Raw
Responses Re: Identifying ALTER TABLE "sub-command"
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: CUBE seems a bit confused about ORDER BY
Next
From: Tom Lane
Date:
Subject: Re: The first function call