diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2013-02-21 22:46:17 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2013-02-21 22:46:17 -0300 |
commit | a73018392636ce832b09b5c31f6ad1f18a4643ea (patch) | |
tree | 45ff73dc25699e9156147948e7f4ba2a85961a33 /src/backend/storage | |
parent | 6e3fd964632e95c7359457b7d67aa20c72a71679 (diff) | |
download | postgresql-a73018392636ce832b09b5c31f6ad1f18a4643ea.tar.gz postgresql-a73018392636ce832b09b5c31f6ad1f18a4643ea.zip |
Move relpath() to libpgcommon
This enables non-backend code, such as pg_xlogdump, to use it easily.
The previous location, in src/backend/catalog/catalog.c, made that
essentially impossible because that file depends on many backend-only
facilities; so this needs to live separately.
Diffstat (limited to 'src/backend/storage')
-rw-r--r-- | src/backend/storage/buffer/bufmgr.c | 1 | ||||
-rw-r--r-- | src/backend/storage/buffer/localbuf.c | 1 | ||||
-rw-r--r-- | src/backend/storage/file/fd.c | 1 | ||||
-rw-r--r-- | src/backend/storage/file/reinit.c | 1 | ||||
-rw-r--r-- | src/backend/storage/smgr/md.c | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index 405ff61130e..ea7d469f2f4 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -34,6 +34,7 @@ #include <unistd.h> #include "catalog/catalog.h" +#include "common/relpath.h" #include "executor/instrument.h" #include "miscadmin.h" #include "pg_trace.h" diff --git a/src/backend/storage/buffer/localbuf.c b/src/backend/storage/buffer/localbuf.c index df15789e6a6..30dc8098ed2 100644 --- a/src/backend/storage/buffer/localbuf.c +++ b/src/backend/storage/buffer/localbuf.c @@ -16,6 +16,7 @@ #include "postgres.h" #include "catalog/catalog.h" +#include "common/relpath.h" #include "executor/instrument.h" #include "storage/buf_internals.h" #include "storage/bufmgr.h" diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index ff7e221cde9..ba1b84eadef 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -71,6 +71,7 @@ #include "access/xact.h" #include "catalog/catalog.h" #include "catalog/pg_tablespace.h" +#include "common/relpath.h" #include "pgstat.h" #include "storage/fd.h" #include "storage/ipc.h" diff --git a/src/backend/storage/file/reinit.c b/src/backend/storage/file/reinit.c index 2623be8aeff..d62d5848a7a 100644 --- a/src/backend/storage/file/reinit.c +++ b/src/backend/storage/file/reinit.c @@ -17,6 +17,7 @@ #include <unistd.h> #include "catalog/catalog.h" +#include "common/relpath.h" #include "storage/copydir.h" #include "storage/fd.h" #include "storage/reinit.h" diff --git a/src/backend/storage/smgr/md.c b/src/backend/storage/smgr/md.c index 20eb36a85f9..7d567ae1103 100644 --- a/src/backend/storage/smgr/md.c +++ b/src/backend/storage/smgr/md.c @@ -21,6 +21,7 @@ #include "miscadmin.h" #include "access/xlog.h" #include "catalog/catalog.h" +#include "common/relpath.h" #include "portability/instr_time.h" #include "postmaster/bgwriter.h" #include "storage/fd.h" |