diff --git a/doc/src/FAQ.html b/doc/src/FAQ.html index 19344f93226..bc06aed60be 100644 --- a/doc/src/FAQ.html +++ b/doc/src/FAQ.html @@ -728,10 +728,13 @@ from the postmaster, it is not running in an identical environment and locking/backend interaction problems may not be duplicated.

Another method is to start psql in one window, then find the -PID of the postgres process being used by the +PID of the postgres process used by psql. Use a debugger to attach to the postgres -PID. You can set breakpoints in the debugger and issues -queries from psql. +PID. You can set breakpoints in the debugger and issue +queries from psql. If you are debugging postgres startup, +you can set PGOPTIONS="-W n", then start psql. This will cause +startup to delay for n seconds so you can attach with the +debugger and trace through the startup sequence.

The postgres program has -s, -A, and -t options that can be very useful for debugging and performance measurements.

diff --git a/src/backend/utils/cache/inval.c b/src/backend/utils/cache/inval.c index 17ec6cf695c..e218daa7483 100644 --- a/src/backend/utils/cache/inval.c +++ b/src/backend/utils/cache/inval.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/inval.c,v 1.36 2000/05/30 00:49:54 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/inval.c,v 1.37 2000/06/08 19:51:03 momjian Exp $ * * Note - this code is real crufty... * @@ -905,6 +905,7 @@ ImmediateInvalidateSharedHeapTuple(Relation relation, HeapTuple tuple) "ImmediateInvalidateSharedHeapTuple"); } +#ifdef NOT_USED /* * ImmediateSharedRelationCacheInvalidate * Register shared relation cache invalidation immediately @@ -940,3 +941,4 @@ ImmediateSharedRelationCacheInvalidate(Relation relation) RelationIdImmediateRegisterSharedInvalid( RelOid_pg_class, RelationGetRelid(relation)); } +#endif diff --git a/src/include/utils/inval.h b/src/include/utils/inval.h index b312839474d..a585152555b 100644 --- a/src/include/utils/inval.h +++ b/src/include/utils/inval.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: inval.h,v 1.16 2000/01/26 05:58:38 momjian Exp $ + * $Id: inval.h,v 1.17 2000/06/08 19:51:06 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -28,6 +28,4 @@ extern void RelationMark4RollbackHeapTuple(Relation relation, HeapTuple tuple); extern void ImmediateInvalidateSharedHeapTuple(Relation relation, HeapTuple tuple); -extern void ImmediateSharedRelationCacheInvalidate(Relation relation); - #endif /* INVAL_H */