Skip to content

Commit da6f3e4

Browse files
committed
Reorganize partitioning code
There's been a massive addition of partitioning code in PostgreSQL 11, with little oversight on its placement, resulting in a catalog/partition.c with poorly defined boundaries and responsibilities. This commit tries to set a couple of distinct modules to separate things a little bit. There are no code changes here, only code movement. There are three new files: src/backend/utils/cache/partcache.c src/include/partitioning/partdefs.h src/include/utils/partcache.h The previous arrangement of #including catalog/partition.h almost everywhere is no more. Authors: Amit Langote and Álvaro Herrera Discussion: https://postgr.es/m/98e8d509-790a-128c-be7f-e48a5b2d8d97@lab.ntt.co.jp https://postgr.es/m/11aa0c50-316b-18bb-722d-c23814f39059@lab.ntt.co.jp https://postgr.es/m/143ed9a4-6038-76d4-9a55-502035815e68@lab.ntt.co.jp https://postgr.es/m/20180413193503.nynq7bnmgh6vs5vm@alvherre.pgsql
1 parent b39fd89 commit da6f3e4

File tree

32 files changed

+3693
-3585
lines changed

32 files changed

+3693
-3585
lines changed

contrib/pageinspect/hashfuncs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "funcapi.h"
2020
#include "miscadmin.h"
2121
#include "utils/builtins.h"
22+
#include "utils/rel.h"
2223

2324
PG_FUNCTION_INFO_V1(hash_page_type);
2425
PG_FUNCTION_INFO_V1(hash_page_stats);

contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
#include "storage/ipc.h"
7777
#include "storage/spin.h"
7878
#include "tcop/utility.h"
79+
#include "utils/acl.h"
7980
#include "utils/builtins.h"
8081
#include "utils/memutils.h"
8182

src/backend/catalog/heap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
#include "utils/fmgroids.h"
7878
#include "utils/inval.h"
7979
#include "utils/lsyscache.h"
80+
#include "utils/partcache.h"
8081
#include "utils/rel.h"
8182
#include "utils/ruleutils.h"
8283
#include "utils/snapmgr.h"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy