Resolve partition strategy during early parsing

This has little practical value, but there's no reason to let the
partition strategy names travel through DDL as strings.

Reviewed-by: Japin Li <japi...@hotmail.com>
Discussion: https://postgr.es/m/20221021093216.ffupd7epy2mytkux@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5fca91025e05f803140831953c09a36f08efcef5

Modified Files
--------------
src/backend/commands/tablecmds.c      | 35 +++++++++++------------------------
src/backend/parser/gram.y             | 22 +++++++++++++++++++++-
src/backend/partitioning/partbounds.c | 27 +++++----------------------
src/backend/utils/cache/partcache.c   |  6 ++++++
src/include/nodes/parsenodes.h        | 15 ++++++++-------
src/include/partitioning/partbounds.h |  2 +-
src/include/utils/partcache.h         |  3 ++-
7 files changed, 54 insertions(+), 56 deletions(-)

Reply via email to