Notes
- If EXCLUSIVE or SHARE are not speicified, EXCLUSIVE is assumed.
+ If EXCLUSIVE or SHARE are not specified, EXCLUSIVE is assumed.
If ROW or ACCESS is not specified, the entire table is locked
for the duration of the transaction.
This lock mode is acquired automatically over tables being queried.
- This lock is released automatically after the statement completes.
+ It is released after the statement completes.
It does not remain for the duration of the transaction.
This is the least restrictive lock mode. It conflicts only with
- ACCESS EXCLUSIVE mode. It is intended to protect a table being
+ ACCESS EXCLUSIVE mode. It is used to protect a table being
modified by concurrent ALTER TABLE,
DROP TABLE and VACUUM
commands.
Automatically acquired by SELECT...FOR UPDATE.
While it is a shared lock, there is the intention to later upgrade
- this to an EXCLUSIVE lock.
+ this to a ROW EXCLUSIVE lock.
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.147 2000/03/01 02:39:46 ishii Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.148 2000/03/23 23:16:48 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
CommandDest whereToSendOutput = Debug;
/* Define status buffer needed by PS_SET_STATUS */
+#ifdef PS_DEFINE_BUFFER
PS_DEFINE_BUFFER;
+#endif
extern void BaseInit(void);
extern void StartupXLOG(void);
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.147 $ $Date: 2000/03/01 02:39:46 $\n");
+ puts("$Revision: 1.148 $ $Date: 2000/03/23 23:16:48 $\n");
}
/*
extern char Ps_status_buffer[];
-#define PS_DEFINE_BUFFER
+#undef PS_DEFINE_BUFFER
#define PS_INIT_STATUS(argc, argv, execname, username, hostname, dbname) \
{ \
#endif
#ifdef NO_PS_STATUS
-#define PS_DEFINE_BUFFER
+#undef PS_DEFINE_BUFFER
#define PS_INIT_STATUS(argc, argv, execname, username, hostname, dbname)
#define PS_CLEAR_STATUS()
#define PS_SET_STATUS(status) { if ((status)); }