Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda6f3e4

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 acatalog/partition.c with poorly defined boundaries and responsibilities.This commit tries to set a couple of distinct modules to separate thingsa 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.hThe previous arrangement of #including catalog/partition.h almosteverywhere is no more.Authors: Amit Langote and Álvaro HerreraDiscussion:https://postgr.es/m/98e8d509-790a-128c-be7f-e48a5b2d8d97@lab.ntt.co.jphttps://postgr.es/m/11aa0c50-316b-18bb-722d-c23814f39059@lab.ntt.co.jphttps://postgr.es/m/143ed9a4-6038-76d4-9a55-502035815e68@lab.ntt.co.jphttps://postgr.es/m/20180413193503.nynq7bnmgh6vs5vm@alvherre.pgsql
1 parentb39fd89 commitda6f3e4

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)

[8]ページ先頭

©2009-2025 Movatter.jp