From a8bb8eb58334e26eac0aa8d2db499a70e22b39d7 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Tue, 1 Sep 2009 02:54:52 +0000 Subject: Remove flatfiles.c, which is now obsolete. Recent commits have removed the various uses it was supporting. It was a performance bottleneck, according to bug report #4919 by Lauris Ulmanis; seems it slowed down user creation after a billion users. --- src/backend/tcop/postgres.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/backend/tcop/postgres.c') diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 75092fc4a45..2371999062a 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.572 2009/09/01 00:09:42 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.573 2009/09/01 02:54:51 alvherre Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -66,7 +66,6 @@ #include "tcop/pquery.h" #include "tcop/tcopprot.h" #include "tcop/utility.h" -#include "utils/flatfiles.h" #include "utils/lsyscache.h" #include "utils/memutils.h" #include "utils/ps_status.h" @@ -3280,12 +3279,6 @@ PostgresMain(int argc, char *argv[], const char *username) */ StartupXLOG(); on_shmem_exit(ShutdownXLOG, 0); - - /* - * We have to build the flat file for pg_database, but not for the - * user and group tables, since we won't try to do authentication. - */ - BuildFlatFiles(true); } /* -- cgit v1.2.3