pgsql: Forbid using pg_xlogfile_name() and pg_xlogfile_name_offset()

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Forbid using pg_xlogfile_name() and pg_xlogfile_name_offset()
Date: 2010-04-07 06:12:52
Message-ID: 20100407061252.E9FA37541D0@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Log Message:
-----------
Forbid using pg_xlogfile_name() and pg_xlogfile_name_offset() during
recovery. We might want to relax this in the future, but ThisTimeLineID
isn't currently correct in backends during recovery, so the filename
returned was wrong.

Modified Files:
--------------
pgsql/doc/src/sgml:
func.sgml (r1.512 -> r1.513)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/func.sgml?r1=1.512&r2=1.513)
pgsql/src/backend/access/transam:
xlog.c (r1.389 -> r1.390)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xlog.c?r1=1.389&r2=1.390)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2010-04-07 09:41:36 Re: pgsql: Forbid using pg_xlogfile_name() and pg_xlogfile_name_offset()
Previous Message Takahiro Itagaki 2010-04-07 03:51:19 pgsql: psql tab completion for ALTER DEFAULT PRIVILEGES and USER MAPPING

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2010-04-07 06:13:14 Re: pending patch: Re: Streaming replication and pg_xlogfile_name()
Previous Message Pavel Stehule 2010-04-07 06:02:40 Re: SELECT constant; takes 15x longer on 9.0?