1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-20 05:13:53 +03:00

Back-patch fix for ALTER DATABASE failing to flush pg_database changes

to disk right away.  This is just a one-liner change rather than trying
to use FlushRelationBuffers().
This commit is contained in:
Tom Lane 2004-11-18 01:19:40 +00:00
parent aed7855dd8
commit a007dd1d21

View File

@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.124 2003/09/29 00:05:24 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.124.2.1 2004/11/18 01:19:40 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -757,6 +757,14 @@ AlterDatabaseSet(AlterDatabaseSetStmt *stmt)
systable_endscan(scan);
heap_close(rel, RowExclusiveLock);
/*
* Force dirty buffers out to disk, so that newly-connecting backends
* will see the updated database in pg_database right away. (They'll
* see an uncommitted tuple, but they don't care; see
* GetRawDatabaseInfo.)
*/
BufferSync();
}