aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-02-06 19:18:06 +0000
committerBruce Momjian <bruce@momjian.us>1998-02-06 19:18:06 +0000
commit6009d70eab2ad5039ef5b9519fa5a63f01ab5f0c (patch)
tree394ceba227a1f98ba4a51b2dfbdaabbc473fe865 /src
parentc2dd3c4fef124effc22745d8a1c62d7349a29170 (diff)
downloadpostgresql-6009d70eab2ad5039ef5b9519fa5a63f01ab5f0c.tar.gz
postgresql-6009d70eab2ad5039ef5b9519fa5a63f01ab5f0c.zip
Set attcacheoff value to -1 for all tables.
Diffstat (limited to 'src')
-rw-r--r--src/backend/bootstrap/bootstrap.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c
index 8482c370bc4..ad3d044a681 100644
--- a/src/backend/bootstrap/bootstrap.c
+++ b/src/backend/bootstrap/bootstrap.c
@@ -7,7 +7,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.33 1998/01/25 05:12:47 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.34 1998/02/06 19:18:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -312,10 +312,8 @@ BootstrapMain(int argc, char *argv[])
* ----------------
*/
pqsignal(SIGINT, (sig_func) die);
-#ifndef win32
pqsignal(SIGHUP, (sig_func) die);
pqsignal(SIGTERM, (sig_func) die);
-#endif /* win32 */
/* --------------------
* initialize globals
@@ -406,12 +404,6 @@ BootstrapMain(int argc, char *argv[])
exitpg(1);
}
-#ifdef win32
- _nt_init();
- _nt_attach();
-#endif /* win32 */
-
-
/* ----------------
* backend initialization
* ----------------
@@ -431,18 +423,13 @@ BootstrapMain(int argc, char *argv[])
hashtable[i] = NULL;
/* ----------------
- * abort processing resumes here - What to do in WIN32?
+ * abort processing resumes here
* ----------------
*/
-#ifndef win32
pqsignal(SIGHUP, handle_warn);
if (sigsetjmp(Warn_restart, 1) != 0)
{
-#else
- if (setjmp(Warn_restart) != 0)
- {
-#endif /* win32 */
Warnings++;
AbortCurrentTransaction();
}
@@ -639,6 +626,7 @@ DefineAttr(char *name, char *type, int attnum)
attlen = attrtypes[attnum]->attlen = Procid[t].len;
attrtypes[attnum]->attbyval = (attlen == 1) || (attlen == 2) || (attlen == 4);
}
+ attrtypes[attnum]->attcacheoff = -1;
}