Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

pgsql: Force pg_database updates out to disk immediately after ALTER


  • From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
  • To: pgsql-committers(at)postgresql(dot)org
  • Subject: pgsql: Force pg_database updates out to disk immediately after ALTER
  • Date: Thu, 18 Nov 2004 01:14:27 +0000 (GMT)
  • Message-id: <20041118011427.BA5C53A44D8@svr1.postgresql.org> <text/plain>

Log Message:
-----------
Force pg_database updates out to disk immediately after ALTER DATABASE;
this is to avoid scenarios where incoming backends find no live copies
of a database's row because the only live copy is in an as-yet-unwritten
shared buffer, which they can't see.  Also, use FlushRelationBuffers()
for forcing out pg_database, instead of the much more expensive BufferSync().
There's no need to write out pages belonging to other relations.

Modified Files:
--------------
    pgsql/src/backend/commands:
        dbcommands.c (r1.146 -> r1.147)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/dbcommands.c.diff?r1=1.146&r2=1.147)



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group