Re: includedir_internal headers are not self-contained

From: Christoph Berg <cb(at)df7cb(dot)de>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: includedir_internal headers are not self-contained
Date: 2014-04-28 12:29:06
Message-ID: 20140428122906.GA32434@msgid.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Re: Heikki Linnakangas 2014-04-28 <535E09B7(dot)3090706(at)vmware(dot)com>
> >Comments? If there's anyone who has a really good use-case for using
> >relpath() from outside the backend, better speak up.
>
> I'm using it in the pg_rewind tool. It needs to know how to map relfilenodes
> to physical files.
>
> It has quite intimate knowledge of the on-disk layout anyway, so it wouldn't
> be the end of the world to just copy-paste that code. But would rather not,
> of course.

Isn't pg_rewind so low-level server-close that it needs tons of server
headers anyway, including one that would still have relpath()? We are
talking here about what headers pure client apps need.

Christoph
--
cb(at)df7cb(dot)de | http://www.df7cb.de/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2014-04-28 12:29:32 Re: Decrease MAX_BACKENDS to 2^16
Previous Message Marti Raudsepp 2014-04-28 11:44:49 Re: UUIDs in core WAS: 9.4 Proposal: Initdb creates a single table