Skip to content

Commit 6009d70

Browse files
committed
Set attcacheoff value to -1 for all tables.
1 parent c2dd3c4 commit 6009d70

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

src/backend/bootstrap/bootstrap.c

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.33 1998/01/25 05:12:47 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.34 1998/02/06 19:18:06 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -312,10 +312,8 @@ BootstrapMain(int argc, char *argv[])
312312
* ----------------
313313
*/
314314
pqsignal(SIGINT, (sig_func) die);
315-
#ifndef win32
316315
pqsignal(SIGHUP, (sig_func) die);
317316
pqsignal(SIGTERM, (sig_func) die);
318-
#endif /* win32 */
319317

320318
/* --------------------
321319
* initialize globals
@@ -406,12 +404,6 @@ BootstrapMain(int argc, char *argv[])
406404
exitpg(1);
407405
}
408406

409-
#ifdef win32
410-
_nt_init();
411-
_nt_attach();
412-
#endif /* win32 */
413-
414-
415407
/* ----------------
416408
* backend initialization
417409
* ----------------
@@ -431,18 +423,13 @@ BootstrapMain(int argc, char *argv[])
431423
hashtable[i] = NULL;
432424

433425
/* ----------------
434-
* abort processing resumes here - What to do in WIN32?
426+
* abort processing resumes here
435427
* ----------------
436428
*/
437-
#ifndef win32
438429
pqsignal(SIGHUP, handle_warn);
439430

440431
if (sigsetjmp(Warn_restart, 1) != 0)
441432
{
442-
#else
443-
if (setjmp(Warn_restart) != 0)
444-
{
445-
#endif /* win32 */
446433
Warnings++;
447434
AbortCurrentTransaction();
448435
}
@@ -639,6 +626,7 @@ DefineAttr(char *name, char *type, int attnum)
639626
attlen = attrtypes[attnum]->attlen = Procid[t].len;
640627
attrtypes[attnum]->attbyval = (attlen == 1) || (attlen == 2) || (attlen == 4);
641628
}
629+
attrtypes[attnum]->attcacheoff = -1;
642630
}
643631

644632

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy