citus/src
Hanefi Onaldi 66b9f2e887 Deparsing and qualifiying for FUNCTION/PROCEDURE statements (#3014)
This PR aims to add all the necessary logic to qualify and deparse all possible `{ALTER|DROP} .. {FUNCTION|PROCEDURE}` queries.

As Procedures are introduced in PG11, the code contains many PG version checks. I tried my best to make it easy to clean up once we drop PG10 support.


Here are some caveats:
- I assumed that the parse tree is a valid one. There are some queries that are not allowed, but still are parsed successfully by postgres planner. Such queries will result in errors in execution time. (e.g. `ALTER PROCEDURE p STRICT` -> `STRICT` action is valid for functions but not procedures. Postgres decides to parse them nevertheless.)
2019-09-27 19:02:52 +02:00
..
backend Deparsing and qualifiying for FUNCTION/PROCEDURE statements (#3014) 2019-09-27 19:02:52 +02:00
include Deparsing and qualifiying for FUNCTION/PROCEDURE statements (#3014) 2019-09-27 19:02:52 +02:00
test/regress Deparsing and qualifiying for FUNCTION/PROCEDURE statements (#3014) 2019-09-27 19:02:52 +02:00