From a73018392636ce832b09b5c31f6ad1f18a4643ea Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Thu, 21 Feb 2013 22:46:17 -0300 Subject: 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. --- src/backend/storage/buffer/bufmgr.c | 1 + src/backend/storage/buffer/localbuf.c | 1 + 2 files changed, 2 insertions(+) (limited to 'src/backend/storage/buffer') 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 #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" -- cgit v1.2.3