| From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Resolve partition strategy during early parsing |
| Date: | 2022-11-03 15:41:56 |
| Message-ID: | E1oqcLs-000GqF-VN@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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 <japinli(at)hotmail(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2022-11-03 16:02:25 | pgsql: Avoid crash after function syntax error in a replication worker. |
| Previous Message | Tom Lane | 2022-11-03 14:47:40 | pgsql: Add casts to simplehash.h to silence C++ warnings. |