Skip to content

Commit af1a949

Browse files
committed
Further cleanup of client dependencies on src/include/catalog headers.
In commit 9c0a0de, I'd failed to notice that catalog/catalog.h should also be considered a frontend-unsafe header, because it includes (and needs) the full form of pg_class.h, not to mention relcache.h. However, various frontend code was depending on it to get TABLESPACE_VERSION_DIRECTORY, so refactoring of some sort is called for. The cleanest answer seems to be to move TABLESPACE_VERSION_DIRECTORY, as well as the OIDCHARS symbol, to common/relpath.h. Do that, and mop up inclusions as necessary. (I found that quite a few current users of catalog/catalog.h don't seem to need it at all anymore, apparently as a result of the refactorings that created common/relpath.[hc]. And initdb.c needed it only as a route to pg_class_d.h.) Discussion: https://postgr.es/m/6629.1523294509@sss.pgh.pa.us
1 parent f5543d4 commit af1a949

File tree

21 files changed

+17
-29
lines changed

21 files changed

+17
-29
lines changed

contrib/pageinspect/rawpage.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "pageinspect.h"
1919

2020
#include "access/htup_details.h"
21-
#include "catalog/catalog.h"
2221
#include "catalog/namespace.h"
2322
#include "catalog/pg_type.h"
2423
#include "funcapi.h"

contrib/pg_prewarm/pg_prewarm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <unistd.h>
1717

1818
#include "access/heapam.h"
19-
#include "catalog/catalog.h"
2019
#include "fmgr.h"
2120
#include "miscadmin.h"
2221
#include "storage/bufmgr.h"

src/backend/access/index/indexam.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
#include "access/relscan.h"
7474
#include "access/transam.h"
7575
#include "access/xlog.h"
76-
#include "catalog/catalog.h"
7776
#include "catalog/index.h"
7877
#include "pgstat.h"
7978
#include "storage/bufmgr.h"

src/backend/access/rmgrdesc/smgrdesc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
*/
1515
#include "postgres.h"
1616

17-
#include "catalog/catalog.h"
1817
#include "catalog/storage_xlog.h"
1918

2019

src/backend/access/rmgrdesc/xactdesc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#include "access/transam.h"
1818
#include "access/xact.h"
19-
#include "catalog/catalog.h"
2019
#include "storage/sinval.h"
2120
#include "storage/standbydefs.h"
2221
#include "utils/timestamp.h"

src/backend/access/transam/xact.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "access/xlog.h"
3131
#include "access/xloginsert.h"
3232
#include "access/xlogutils.h"
33-
#include "catalog/catalog.h"
3433
#include "catalog/namespace.h"
3534
#include "catalog/storage.h"
3635
#include "commands/async.h"

src/backend/access/transam/xlogfuncs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "access/xlog.h"
2121
#include "access/xlog_internal.h"
2222
#include "access/xlogutils.h"
23-
#include "catalog/catalog.h"
2423
#include "catalog/pg_type.h"
2524
#include "funcapi.h"
2625
#include "miscadmin.h"

src/backend/access/transam/xlogutils.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "access/xlog.h"
2424
#include "access/xlog_internal.h"
2525
#include "access/xlogutils.h"
26-
#include "catalog/catalog.h"
2726
#include "miscadmin.h"
2827
#include "pgstat.h"
2928
#include "storage/smgr.h"

src/backend/catalog/storage.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "access/xlog.h"
2525
#include "access/xloginsert.h"
2626
#include "access/xlogutils.h"
27-
#include "catalog/catalog.h"
2827
#include "catalog/storage.h"
2928
#include "catalog/storage_xlog.h"
3029
#include "storage/freespace.h"

src/backend/commands/vacuumlazy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
#include "access/transam.h"
4545
#include "access/visibilitymap.h"
4646
#include "access/xlog.h"
47-
#include "catalog/catalog.h"
4847
#include "catalog/storage.h"
4948
#include "commands/dbcommands.h"
5049
#include "commands/progress.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