initdb/regression tests pass.
{
int4 lower;
int4 upper;
-} INT4KEY;
+} INT4KEY;
typedef struct tskey
{
Timestamp lower;
Timestamp upper;
-} TSKEY;
+} TSKEY;
/* used for sorting */
typedef struct rix
{
int index;
char *r;
-} RIX;
+} RIX;
/*
** int4key in/out
* http://www.druid.net/darcy/
*
- * $Id: chkpass.c,v 1.5 2001/10/25 05:49:19 momjian Exp $
+ * $Id: chkpass.c,v 1.6 2001/11/05 17:46:22 momjian Exp $
* best viewed with tabs set to 4
*/
typedef struct chkpass
{
char password[16];
-} chkpass;
+} chkpass;
/*
* Various forward declarations:
unsigned int size; /* required to be a Postgres varlena type */
unsigned int dim;
float x[1];
-} NDBOX;
+} NDBOX;
u_char dbh_hlen[2]; /* length of this header */
u_char dbh_rlen[2]; /* length of a record */
u_char dbh_stub[20]; /* misc stuff we don't need */
-} dbf_header;
+} dbf_header;
/* disk field-description */
u_char dbf_dec; /* number of decimal positions if type is
* 'N' */
u_char dbf_stub[14]; /* stuff we don't need */
-} dbf_field;
+} dbf_field;
/* memory field-description */
u_char db_type; /* field-type */
u_char db_flen; /* field-length */
u_char db_dec; /* number of decimal positions */
-} f_descr;
+} f_descr;
/* memory dfb-header */
u_char *db_buff; /* record-buffer to save malloc()'s */
f_descr *db_fields; /* pointer to an array of field-
* descriptions */
-} dbhead;
+} dbhead;
/* structure that contains everything a user wants from a field, including
the contents (in ASCII). Warning! db_flen may be bigger than the actual
u_char db_flen; /* field-length */
u_char db_dec; /* number of decimal positions */
u_char *db_contents; /* contents of the field in ASCII */
-} field;
+} field;
/* prototypes for functions */
extern short get_short(u_char *cp);
extern void put_short(u_char *cp, short lval);
-#endif /* _DBF_H */
+#endif /* _DBF_H */
*/
PGresult *res;
-} dblink_results;
+} dblink_results;
/*
* External declarations
*/
dblink_results *init_dblink_results(MemoryContext fn_mcxt);
-#endif /* DBLINK_H */
+#endif /* DBLINK_H */
"the",
"yes"
};
-#endif /* USE_STOP_WORDS */
+#endif /* USE_STOP_WORDS */
/* stuff for caching query-plans, stolen from contrib/spi/\*.c */
typedef struct
char *ident;
int nplans;
void **splan;
-} EPlan;
+} EPlan;
static EPlan *InsertPlans = NULL;
static EPlan *DeletePlans = NULL;
else
StopHigh = StopMiddle;
}
-#endif /* USE_STOP_WORDS */
+#endif /* USE_STOP_WORDS */
return (false);
}
/* These prevent GH from becoming F */
#define NOGHTOF(c) (ENCODE(c) & 16) /* BDH */
-#endif /* FUZZYSTRMATCH_H */
+#endif /* FUZZYSTRMATCH_H */
/*
* PostgreSQL type definitions for ISBNs.
*
- * $Id: isbn_issn.c,v 1.3 2001/02/10 02:31:25 tgl Exp $
+ * $Id: isbn_issn.c,v 1.4 2001/11/05 17:46:23 momjian Exp $
*/
#include "postgres.h"
{
char num[13];
char pad[3];
-} isbn;
+} isbn;
/*
* Various forward declarations:
{
char num[9];
char pad[7];
-} issn;
+} issn;
/*
* Various forward declarations:
/* -------------------------------------------------------------------------
* pg_dumplo
*
- * $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/pg_dumplo.h,v 1.6 2001/10/28 06:25:40 momjian Exp $
+ * $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/pg_dumplo.h,v 1.7 2001/11/05 17:46:23 momjian Exp $
*
* Karel Zak 1999-2000
* -------------------------------------------------------------------------
char *lo_table,
*lo_attr;
Oid lo_oid;
-} LOlist;
+} LOlist;
typedef struct
{
quiet;
PGresult *res;
PGconn *conn;
-} LODumpMaster;
+} LODumpMaster;
typedef enum
{
ACTION_EXPORT_ATTR,
ACTION_EXPORT_ALL,
ACTION_IMPORT
-} PGLODUMP_ACTIONS;
+} PGLODUMP_ACTIONS;
extern char *progname;
extern void pglo_export(LODumpMaster * pgLO);
extern void pglo_import(LODumpMaster * pgLO);
-#endif /* PG_DUMPLO_H */
+#endif /* PG_DUMPLO_H */
const char *tag;
int size;
int priority;
-} tags[] =
+} tags[] =
{
{
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.9 2001/10/28 06:25:41 momjian Exp $
+ * $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.10 2001/11/05 17:46:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/
{
uint32 crc1;
uint32 crc2;
-} crc64V0;
+} crc64V0;
static uint32 crc_tableV0[] = {
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
char lc_collate[LOCALE_NAME_BUFLEN_V0];
char lc_ctype[LOCALE_NAME_BUFLEN_V0];
char archdir[MAXPGPATH]; /* where to move offline log files */
-} ControlFileDataV0;
+} ControlFileDataV0;
typedef struct CheckPointV0
{
TransactionId nextXid;
Oid nextOid;
bool Shutdown;
-} CheckPointV0;
+} CheckPointV0;
typedef struct XLogRecordV0
{
uint16 xl_len; /* total len of record *data* */
uint8 xl_info;
RmgrId xl_rmid; /* resource manager inserted this record */
-} XLogRecordV0;
+} XLogRecordV0;
#define SizeOfXLogRecordV0 DOUBLEALIGN(sizeof(XLogRecordV0))
typedef struct XLogContRecordV0
{
uint16 xl_len; /* len of data left */
-} XLogContRecordV0;
+} XLogContRecordV0;
#define SizeOfXLogContRecordV0 DOUBLEALIGN(sizeof(XLogContRecordV0))
{
uint32 xlp_magic;
uint16 xlp_info;
-} XLogPageHeaderDataV0;
+} XLogPageHeaderDataV0;
#define SizeOfXLogPHDV0 DOUBLEALIGN(sizeof(XLogPageHeaderDataV0))
/*
- * $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.12 2001/10/25 05:49:19 momjian Exp $
+ * $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.13 2001/11/05 17:46:23 momjian Exp $
*
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
* written by Tatsuo Ishii
/* for getrlimit */
#include
-#endif /* WIN32 */
+#endif /* WIN32 */
/********************************************************************
* some configurable parameters */
int tid; /* teller id for this transaction */
int delta;
int abalance;
-} CState;
+} CState;
static void
usage()
#else /* but BSD doesn't ... */
if (getrlimit(RLIMIT_OFILE, &rlim) == -1)
{
-#endif /* HAVE_RLIMIT_NOFILE */
+#endif /* HAVE_RLIMIT_NOFILE */
fprintf(stderr, "getrlimit failed. reason: %s\n", strerror(errno));
exit(1);
}
fprintf(stderr, "Use limit/ulimt to increase the limit before using pgbench.\n");
exit(1);
}
-#endif /* #ifndef __CYGWIN__ */
+#endif /* #ifndef __CYGWIN__ */
break;
case 'C':
is_connect = 1;
#define inline __inline
#else /* !__GNUC__ */
#define inline
-#endif /* !__GNUC__ */
+#endif /* !__GNUC__ */
/* Function for Feistel Networks */
{
uint32 S[4][256]; /* S-Boxes */
uint32 P[BLF_N + 2]; /* Subkeys */
-} blf_ctx;
+} blf_ctx;
/* Raw access to customized Blowfish
* blf_key is just:
{
BF_word S[4][0x100];
BF_key P;
-} BF_ctx;
+} BF_ctx;
/*
* Magic IV for 64 Blowfish encryptions that we do at the end.
p = output + strlen(output);
}
else
-#endif /* !DISABLE_XDES */
+#endif /* !DISABLE_XDES */
{
/*
* "old"-style: setting - 2 bytes of salt key - up to 8 characters
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: internal.c,v 1.7 2001/10/28 06:25:41 momjian Exp $
+ * $Id: internal.c,v 1.8 2001/11/05 17:46:23 momjian Exp $
*/
{
char *name;
void (*init) (PX_MD * h);
-} int_digest_list[] =
+} int_digest_list[] =
{
{
{
char *name;
PX_Cipher *(*load) (void);
-} int_ciphers[] =
+} int_ciphers[] =
{
{
-/* $Id: md5.h,v 1.6 2001/10/28 06:25:41 momjian Exp $ */
+/* $Id: md5.h,v 1.7 2001/11/05 17:46:23 momjian Exp $ */
/* $KAME: md5.h,v 1.3 2000/02/22 14:01:18 itojun Exp $ */
/*
unsigned int md5_i;
uint8 md5_buf[MD5_BUFLEN];
-} md5_ctxt;
+} md5_ctxt;
extern void md5_init(md5_ctxt *);
extern void md5_loop(md5_ctxt *, const uint8 *, unsigned int);
md5_result((x), (y)); \
} while (0)
-#endif /* ! _NETINET6_MD5_H_ */
+#endif /* ! _NETINET6_MD5_H_ */
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: openssl.c,v 1.7 2001/10/28 06:25:41 momjian Exp $
+ * $Id: openssl.c,v 1.8 2001/11/05 17:46:23 momjian Exp $
*/
uint8 iv[EVP_MAX_IV_LENGTH];
uint klen;
uint init;
-} ossldata;
+} ossldata;
/* generic EVP */
{
char *name;
PX_Cipher cf;
-} spec_types[] =
+} spec_types[] =
{
{
"bf-cbc",
{
gen_evp_block_size, gen_evp_key_size, gen_evp_iv_size,
- bf_init, bf_cbc_encrypt, bf_cbc_decrypt, gen_evp_free
+ bf_init, bf_cbc_encrypt, bf_cbc_decrypt, gen_evp_free
}
},
{
"bf-ecb",
{
gen_evp_block_size, gen_evp_key_size, gen_evp_iv_size,
- bf_init, bf_ecb_encrypt, bf_ecb_decrypt, gen_evp_free
+ bf_init, bf_ecb_encrypt, bf_ecb_decrypt, gen_evp_free
}
},
{
"bf-cfb",
{
gen_evp_block_size, gen_evp_key_size, gen_evp_iv_size,
- bf_init, bf_cfb64_encrypt, bf_cfb64_decrypt, gen_evp_free
+ bf_init, bf_cfb64_encrypt, bf_cfb64_decrypt, gen_evp_free
}
},
{
"bf-ofb",
{
gen_evp_block_size, gen_evp_key_size, gen_evp_iv_size,
- bf_init, bf_ofb64_encrypt, bf_ofb64_decrypt, gen_evp_free
+ bf_init, bf_ofb64_encrypt, bf_ofb64_decrypt, gen_evp_free
}
},
{
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: px-crypt.c,v 1.4 2001/10/28 06:25:41 momjian Exp $
+ * $Id: px-crypt.c,v 1.5 2001/11/05 17:46:23 momjian Exp $
*/
unsigned id_len;
char *(*crypt) (const char *psw, const char *salt,
char *buf, unsigned len);
-} px_crypt_list[] =
+} px_crypt_list[] =
{
{
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: px-crypt.h,v 1.4 2001/10/28 06:25:41 momjian Exp $
+ * $Id: px-crypt.h,v 1.5 2001/11/05 17:46:23 momjian Exp $
*/
#ifndef _PX_CRYPT_H
/* crypt-md5.c */
char *px_crypt_md5(const char *pw, const char *salt,
char *dst, unsigned dstlen);
-#endif /* !PX_SYSTEM_CRYPT */
+#endif /* !PX_SYSTEM_CRYPT */
-#endif /* _PX_CRYPT_H */
+#endif /* _PX_CRYPT_H */
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: px.h,v 1.3 2001/10/25 05:49:20 momjian Exp $
+ * $Id: px.h,v 1.4 2001/11/05 17:46:23 momjian Exp $
*/
#ifndef __PX_H
(c)->decrypt(c, data, dlen, res, rlen)
#define px_combo_free(c) (c)->free(c)
-#endif /* __PX_H */
+#endif /* __PX_H */
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: random.c,v 1.4 2001/10/28 06:25:41 momjian Exp $
+ * $Id: random.c,v 1.5 2001/11/05 17:46:23 momjian Exp $
*/
close(fd);
return res;
}
-#endif /* RAND_DEV */
+#endif /* RAND_DEV */
#ifdef RAND_SILLY
*dst++ = random();
return i;
}
-#endif /* RAND_SILLY */
+#endif /* RAND_SILLY */
#ifdef RAND_OPENSSL
return -1;
}
-#endif /* RAND_OPENSSL */
+#endif /* RAND_OPENSSL */
#endif
static u4byte tab_gen = 0;
-#endif /* !PRE_CALC_TABLES */
+#endif /* !PRE_CALC_TABLES */
#define ff_mult(a,b) (a && b ? pow_tab[(log_tab[a] + log_tab[b]) % 255] : 0)
}
tab_gen = 1;
-#endif /* !PRE_CALC_TABLES */
+#endif /* !PRE_CALC_TABLES */
}
int decrypt;
u4byte e_key[64];
u4byte d_key[64];
-} rijndael_ctx;
+} rijndael_ctx;
/* 2. Standard interface for AES cryptographic routines */
void aes_cbc_encrypt(rijndael_ctx * ctx, uint8 *iva, uint8 *data, unsigned len);
void aes_cbc_decrypt(rijndael_ctx * ctx, uint8 *iva, uint8 *data, unsigned len);
-#endif /* _RIJNDAEL_H_ */
+#endif /* _RIJNDAEL_H_ */
-/* $Id: sha1.c,v 1.9 2001/10/28 06:25:41 momjian Exp $ */
+/* $Id: sha1.c,v 1.10 2001/11/05 17:46:23 momjian Exp $ */
/* $KAME: sha1.c,v 1.3 2000/02/22 14:01:18 itojun Exp $ */
/*
#endif
}
-#endif /* unsupported */
+#endif /* unsupported */
-/* $Id: sha1.h,v 1.7 2001/10/28 06:25:41 momjian Exp $ */
+/* $Id: sha1.h,v 1.8 2001/11/05 17:46:23 momjian Exp $ */
/* $KAME: sha1.h,v 1.4 2000/02/22 14:01:18 itojun Exp $ */
/*
#define SHA1_RESULTLEN (160/8)
-#endif /* _NETINET6_SHA1_H_ */
+#endif /* _NETINET6_SHA1_H_ */
char u_sigd;
char l_ext;
char u_ext;
-} SEG;
+} SEG;
char *ident;
int nplans;
void **splan;
-} EPlan;
+} EPlan;
static EPlan *FPlans = NULL;
static int nFPlans = 0;
{
char *ident;
void *splan;
-} EPlan;
+} EPlan;
static EPlan *Plans = NULL; /* for UPDATE/DELETE */
static int nPlans = 0;
int4 len;
int4 flag;
char data[1];
-} GISTTYPE;
+} GISTTYPE;
#define ARRKEY 0x01
#define SIGNKEY 0x02
char *(*lemmatize) (void *, char *, int *);
int (*is_stoplemm) (void *, char *, int);
int (*is_stemstoplemm) (void *, char *, int);
-} DICT;
+} DICT;
/* insert all dictionaries */
#define DICT_BODY
int2 distance;
int2 length;
struct NODE *next;
-} NODE;
+} NODE;
typedef struct
{
/* state for value's parser */
TI_IN_STATE valstate;
-} QPRS_STATE;
+} QPRS_STATE;
/*
* get token from query string
WordEntry *arre;
char *values;
char *operand;
-} CHKVAL;
+} CHKVAL;
/*
* compare 2 string values
char *cur;
char *op;
int4 buflen;
-} INFIX;
+} INFIX;
#define RESIZEBUF(inf,addsize) \
while( ( inf->cur - inf->buf ) + addsize + 1 >= inf->buflen ) \
/* user-friendly value */
uint16 distance;
uint16 length;
-} ITEM;
+} ITEM;
/*
*Storage:
int4 len;
int4 size;
char data[1];
-} QUERYTYPE;
+} QUERYTYPE;
#define HDRSIZEQT ( 2*sizeof(int4) )
#define COMPUTESIZE(size,lenofoperand) ( HDRSIZEQT + size * sizeof(ITEM) + lenofoperand )
struct NODE *left;
struct NODE *right;
ITEM *valnode;
-} NODE;
+} NODE;
/*
* make query tree from plain view of query
ITEM *ptr;
int4 len;
int4 cur;
-} PLAINTREE;
+} PLAINTREE;
static void
plainnode(PLAINTREE * state, NODE * node)
WORD *words;
int4 lenwords;
int4 curwords;
-} PRSTEXT;
+} PRSTEXT;
/*
* Parse text to lexems
{
uint16 len;
uint16 pos;
-} WordEntry;
+} WordEntry;
typedef struct
{
int4 len;
int4 size;
char data[1];
-} txtidx;
+} txtidx;
#define DATAHDRSIZE (sizeof(int4)*2)
#define CALCDATASIZE(x, lenstr) ( x * sizeof(WordEntry) + DATAHDRSIZE + lenstr )
int4 len;
int4 state;
bool oprisdelim;
-} TI_IN_STATE;
+} TI_IN_STATE;
int4 gettoken_txtidx(TI_IN_STATE * state);
char *results[MAXRESULTS];
int32 reslens[MAXRESULTS];
char *resbuf; /* pointer to the result buffer for pfree */
-} XPath_Results;
+} XPath_Results;
char *resptr;
int32 reslen;
XPath_Results *xpres;
-} pgxml_udata;
+} pgxml_udata;
#define UD ((pgxml_udata *) userData)
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.85 2001/10/25 05:49:20 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.86 2001/11/05 17:46:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/
ReleaseBuffer(buffer);
pfree(pred);
}
-#endif /* defined GISTDEBUG */
+#endif /* defined GISTDEBUG */
void
gist_redo(XLogRecPtr lsn, XLogRecord *record)
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.127 2001/11/02 16:30:29 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.128 2001/11/05 17:46:23 momjian Exp $
*
*
* INTERFACE ROUTINES
elog(DEBUG, "heapgettup: relation(%c)=`%s', %p",
relation->rd_rel->relkind, RelationGetRelationName(relation),
snapshot);
-#endif /* !defined(HEAPDEBUGALL) */
+#endif /* !defined(HEAPDEBUGALL) */
if (!ItemPointerIsValid(tid))
{
)
);
}
-#endif /* defined(DISABLE_COMPLEX_MACRO) */
+#endif /* defined(DISABLE_COMPLEX_MACRO) */
/* ----------------------------------------------------------------
/*
* Check for shared-cache-inval messages before trying to open the
- * relation. This is needed to cover the case where the name identifies
- * a rel that has been dropped and recreated since the start of our
- * transaction: if we don't flush the old relcache entry then we'll
- * latch onto that entry and suffer an error when we do LockRelation.
- * Note that relation_open does not need to do this, since a relation's
- * OID never changes.
+ * relation. This is needed to cover the case where the name
+ * identifies a rel that has been dropped and recreated since the
+ * start of our transaction: if we don't flush the old relcache entry
+ * then we'll latch onto that entry and suffer an error when we do
+ * LockRelation. Note that relation_open does not need to do this,
+ * since a relation's OID never changes.
*
* We skip this if asked for NoLock, on the assumption that the caller
* has already ensured some appropriate lock is held.
#define HEAPDEBUG_1
#define HEAPDEBUG_2
#define HEAPDEBUG_3
-#endif /* !defined(HEAPDEBUGALL) */
+#endif /* !defined(HEAPDEBUGALL) */
HeapTuple
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/heap/tuptoaster.c,v 1.25 2001/10/25 05:49:21 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/heap/tuptoaster.c,v 1.26 2001/11/05 17:46:23 momjian Exp $
*
*
* INTERFACE ROUTINES
return result;
}
-#endif /* TUPLE_TOASTER_ACTIVE */
+#endif /* TUPLE_TOASTER_ACTIVE */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.55 2001/10/28 06:25:41 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/index/Attic/istrat.c,v 1.56 2001/11/05 17:46:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
}
}
-#endif /* defined(ISTRATDEBUG) */
+#endif /* defined(ISTRATDEBUG) */
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.83 2001/10/25 05:49:21 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.84 2001/11/05 17:46:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifdef BTREE_BUILD_STATS
if (Show_btree_build_stats)
ResetUsage();
-#endif /* BTREE_BUILD_STATS */
+#endif /* BTREE_BUILD_STATS */
/*
* We expect to be called exactly once for any index relation. If
ShowUsage();
ResetUsage();
}
-#endif /* BTREE_BUILD_STATS */
+#endif /* BTREE_BUILD_STATS */
/* all done */
BuildingBtree = false;
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsort.c,v 1.61 2001/10/25 05:49:21 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtsort.c,v 1.62 2001/11/05 17:46:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
ShowUsage();
ResetUsage();
}
-#endif /* BTREE_BUILD_STATS */
+#endif /* BTREE_BUILD_STATS */
tuplesort_performsort(btspool->sortstate);
if (btspool2)
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.67 2001/10/28 06:25:42 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtree.c,v 1.68 2001/11/05 17:46:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
ReleaseBuffer(buf);
}
}
-#endif /* defined RTDEBUG */
+#endif /* defined RTDEBUG */
void
rtree_redo(XLogRecPtr lsn, XLogRecord *record)
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.49 2001/10/25 05:49:22 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.50 2001/11/05 17:46:24 momjian Exp $
*
* NOTES
* This file contains the high level access-method interface to the
return TransactionLogTest(transactionId, TRANSACTION_STATUS_IN_PROGRESS);
}
-#endif /* NOT_USED */
+#endif /* NOT_USED */
/* --------------------------------
* TransactionId Commit
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.81 2001/11/04 19:55:31 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.82 2001/11/05 17:46:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#else /* not USE_LOCALE */
strcpy(ControlFile->lc_collate, "C");
strcpy(ControlFile->lc_ctype, "C");
-#endif /* not USE_LOCALE */
+#endif /* not USE_LOCALE */
/* Contents are protected with a CRC */
INIT_CRC64(ControlFile->crc);
"\tLC_CTYPE '%s', but the server was compiled without locale support.\n"
"\tIt looks like you need to initdb or recompile.",
ControlFile->lc_collate, ControlFile->lc_ctype);
-#endif /* not USE_LOCALE */
+#endif /* not USE_LOCALE */
}
void
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.52 2001/10/25 05:49:22 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.53 2001/11/05 17:46:24 momjian Exp $
*
* NOTES
* See acl.h.
DatumGetCString(DirectFunctionCall1(aclitemout,
PointerGetDatum(aip + i))));
}
-#endif /* ACLDEBUG */
+#endif /* ACLDEBUG */
/*
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.168 2001/11/02 16:30:29 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.169 2001/11/05 17:46:24 momjian Exp $
*
*
* INTERFACE ROUTINES
else
elog(ERROR, "the target relation %u is nailed", relid);
}
-#endif /* ENABLE_REINDEX_NAILED_RELATIONS */
+#endif /* ENABLE_REINDEX_NAILED_RELATIONS */
/*
* Shared system indexes must be overwritten because it's impossible
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.62 2001/10/25 05:49:23 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.63 2001/11/05 17:46:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
return retval;
#else
elog(ERROR, "lookup for procedure by source needs fix (Jan)");
-#endif /* SETS_FIXED */
+#endif /* SETS_FIXED */
}
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/recipe.c,v 1.14 2001/10/25 05:49:27 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/_deadcode/Attic/recipe.c,v 1.15 2001/11/05 17:46:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
char *tpi_relName;
Query *tpi_parsetree;
Plan *tpi_plan;
-} TeePlanInfo;
+} TeePlanInfo;
typedef struct _teeInfo
{
int num;
TeePlanInfo *val;
-} TeeInfo;
+} TeeInfo;
QueryTreeList *appendQlist(QueryTreeList * q1, QueryTreeList * q2);
void OffsetVarAttno(Node *node, int varno, int offset);
#ifdef DEBUG_RECIPE
elog(NOTICE, "beginRecipe: eyes[%d] = %s\n", i, e->nodeName);
-#endif /* DEBUG_RECIPE */
+#endif /* DEBUG_RECIPE */
qList = tg_parseSubQuery(r, e->inNodes->val[0], teeInfo);
#ifdef DEBUG_RECIPE
elog(NOTICE, "calling parser with %s", elem->src);
-#endif /* DEBUG_RECIPE */
+#endif /* DEBUG_RECIPE */
parameterCount = getParamTypes(elem, typev);
#ifdef DEBUG_RECIPE
elog(NOTICE, "calling parser with %s", newquery);
-#endif /* DEBUG_RECIPE */
+#endif /* DEBUG_RECIPE */
qList = parser(newquery, typev, parameterCount);
if (qList->len > 1)
}
-#endif /* TIOGA */
+#endif /* TIOGA */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: recipe.h,v 1.5 2001/10/28 06:25:43 momjian Exp $
+ * $Id: recipe.h,v 1.6 2001/11/05 17:46:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void beginRecipe(RecipeStmt *stmt);
-#endif /* RECIPE_H */
+#endif /* RECIPE_H */
* doesn't work! - jolly 8/19/95
*
*
- * $Id: version.c,v 1.28 2001/10/28 06:25:43 momjian Exp $
+ * $Id: version.c,v 1.29 2001/11/05 17:46:25 momjian Exp $
*
* NOTES
* At the point the version is defined, 2 physical relations are created
vname, vname, vname, bname, bname, snapshot, bname);
eval_as_new_xact(rule_buf);
-#endif /* OLD_REWRITE */
+#endif /* OLD_REWRITE */
}
#endif
vname, vname, vname, attr_list, bname, bname, snapshot, vname, bname);
eval_as_new_xact(rule_buf);
-#endif /* OLD_REWRITE */
+#endif /* OLD_REWRITE */
/* printf("%s\n",rule_buf); */
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.149 2001/11/02 16:30:29 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.150 2001/11/05 17:46:24 momjian Exp $
*
* NOTES
* The PerformAddAttribute() code, like most of the relation
IndexScanDesc iscan;
HeapTupleData tuple;
Buffer buffer;
-} SysScanDescData, *SysScanDesc;
+} SysScanDescData, *SysScanDesc;
static void *
systable_beginscan(Relation rel, const char *indexRelname, int nkeys, ScanKey entry)
return checkok;
}
-#endif /* _DROP_COLUMN_HACK__ */
+#endif /* _DROP_COLUMN_HACK__ */
/*
* ALTER TABLE DROP COLUMN
heap_close(rel, NoLock);
#else
elog(ERROR, "ALTER TABLE / DROP COLUMN is not implemented");
-#endif /* _DROP_COLUMN_HACK__ */
+#endif /* _DROP_COLUMN_HACK__ */
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.64 2001/10/25 05:49:25 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.65 2001/11/05 17:46:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
}
heap_close(rel, RowExclusiveLock);
}
-#endif /* NOTYET */
+#endif /* NOTYET */
/*
* TypeRemove
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.60 2001/11/02 16:30:29 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.61 2001/11/05 17:46:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
return; /* all done... */
/*
- * Grab an exclusive lock on the target table or index, which we will NOT
- * release until end of transaction.
+ * Grab an exclusive lock on the target table or index, which we will
+ * NOT release until end of transaction.
*/
targetrelation = relation_openr(oldrelname, AccessExclusiveLock);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/sequence.c,v 1.66 2001/10/28 06:25:42 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/sequence.c,v 1.67 2001/11/05 17:46:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#endif
#else /* INT64_IS_BUSTED */
#define SEQ_MAXVALUE ((int64) 0x7FFFFFFF)
-#endif /* INT64_IS_BUSTED */
+#endif /* INT64_IS_BUSTED */
#define SEQ_MINVALUE (-SEQ_MAXVALUE)
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.89 2001/11/04 19:55:31 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.90 2001/11/05 17:46:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
str_n = DatumGetCString(DirectFunctionCall1(nameout, datum_n));
datum_p = heap_getattr(tuple, Anum_pg_shadow_passwd, dsc, &null_p);
+
/*
* It can be argued that people having a null password shouldn't
* be allowed to connect under password authentication, because
- * they need to have a password set up first. If you think assuming an
- * empty password in that case is better, change this logic to look
- * something like the code for valuntil.
+ * they need to have a password set up first. If you think
+ * assuming an empty password in that case is better, change this
+ * logic to look something like the code for valuntil.
*/
if (null_p)
{
elog(ERROR, "Invalid user password '%s'", str_p);
/*
- * The extra columns we emit here are not really necessary. To remove
- * them, the parser in backend/libpq/crypt.c would need to be
- * adjusted.
+ * The extra columns we emit here are not really necessary. To
+ * remove them, the parser in backend/libpq/crypt.c would need to
+ * be adjusted.
*/
fprintf(fp,
"%s"
FreeFile(fp);
/*
- * Rename the temp file to its final name, deleting the old pg_pwd.
- * We expect that rename(2) is an atomic action.
+ * Rename the temp file to its final name, deleting the old pg_pwd. We
+ * expect that rename(2) is an atomic action.
*/
if (rename(tempname, filename))
elog(ERROR, "rename %s to %s: %m", tempname, filename);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.211 2001/10/28 06:25:43 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.212 2001/11/05 17:46:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Irel = (Relation *) NULL;
activate_indexes_of_a_table(RelationGetRelid(onerel), false);
}
-#endif /* NOT_USED */
+#endif /* NOT_USED */
/* Clean/scan index relation(s) */
if (Irel != (Relation *) NULL)
#ifdef NOT_USED
if (reindex)
activate_indexes_of_a_table(RelationGetRelid(onerel), true);
-#endif /* NOT_USED */
+#endif /* NOT_USED */
/* update shared free space map with final free space info */
vac_update_fsm(onerel, &fraged_pages, vacrelstats->rel_pages);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.71 2001/10/28 06:25:44 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.72 2001/11/05 17:46:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
static char *pam_passwd = NULL; /* Workaround for Solaris 2.6 brokenness */
static Port *pam_port_cludge; /* Workaround for passing "Port *port"
* into pam_passwd_conv_proc */
-#endif /* USE_PAM */
+#endif /* USE_PAM */
#ifdef KRB4
/*----------------------------------------------------------------
return STATUS_ERROR;
}
-#endif /* KRB4 */
+#endif /* KRB4 */
#ifdef KRB5
return STATUS_ERROR;
}
-#endif /* KRB5 */
+#endif /* KRB5 */
/*
case uaPAM:
authmethod = "PAM";
break;
-#endif /* USE_PAM */
+#endif /* USE_PAM */
}
elog(FATAL, "%s authentication failed for user \"%s\"",
pam_port_cludge = port;
status = CheckPAMAuth(port, port->user, "");
break;
-#endif /* USE_PAM */
+#endif /* USE_PAM */
case uaTrust:
status = STATUS_OK;
else
return STATUS_ERROR;
}
-#endif /* USE_PAM */
+#endif /* USE_PAM */
/*
case uaReject:
#ifdef USE_PAM
case uaPAM:
-#endif /* USE_PAM */
+#endif /* USE_PAM */
status = STATUS_ERROR;
break;
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Header: /cvsroot/pgsql/src/backend/libpq/crypt.c,v 1.41 2001/11/02 18:39:57 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/crypt.c,v 1.42 2001/11/05 17:46:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define CRYPT_PWD_FILE "pg_pwd"
-static char **pwd_cache = NULL;
-static int pwd_cache_count = 0;
+static char **pwd_cache = NULL;
+static int pwd_cache_count = 0;
/*
* crypt_getpwdfilename --- get full pathname of password file
login_b = *((char **) user_b);
/*
- * We only really want to compare the user logins which are first
- * and are terminated by CRYPT_PWD_FILE_SEPSTR. (NB: this code
+ * We only really want to compare the user logins which are first and
+ * are terminated by CRYPT_PWD_FILE_SEPSTR. (NB: this code
* effectively assumes that CRYPT_PWD_FILE_SEPSTR is just one char.)
*/
len_a = strcspn(login_a, CRYPT_PWD_FILE_SEPSTR);
}
/*
- * Read the file and store its lines in current memory context,
- * which we expect will be PostmasterContext. That context will
- * live as long as we need the cache to live, ie, until just after
- * each postmaster child has completed client authentication.
+ * Read the file and store its lines in current memory context, which
+ * we expect will be PostmasterContext. That context will live as
+ * long as we need the cache to live, ie, until just after each
+ * postmaster child has completed client authentication.
*/
while (fgets(buffer, sizeof(buffer), pwd_file) != NULL)
{
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.76 2001/10/28 06:25:44 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.77 2001/11/05 17:46:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
}
}
-#endif /* CYR_RECODE */
+#endif /* CYR_RECODE */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqcomm.c,v 1.122 2001/10/25 05:49:30 momjian Exp $
+ * $Id: pqcomm.c,v 1.123 2001/11/05 17:46:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
unlink(sock_path);
}
-#endif /* HAVE_UNIX_SOCKETS */
+#endif /* HAVE_UNIX_SOCKETS */
if (family == AF_INET)
{
return STATUS_ERROR;
}
}
-#endif /* HAVE_UNIX_SOCKETS */
+#endif /* HAVE_UNIX_SOCKETS */
/*
* Select appropriate accept-queue length limit. PG_SOMAXCONN is only
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.29 2001/03/22 03:59:30 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.30 2001/11/05 17:46:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
got = read(port->sock, pkt->ptr, pkt->nrtodo);
#else
got = recv(port->sock, pkt->ptr, pkt->nrtodo, 0);
-#endif /* __BEOS__ */
+#endif /* __BEOS__ */
if (got > 0)
{
pkt->nrtodo -= got;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.24 2001/09/21 17:06:12 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.25 2001/11/05 17:46:25 momjian Exp $
*
* NOTES
* This shouldn't be in libpq, but the monitor and some other
if (sigaction(signo, &act, &oact) < 0)
return SIG_ERR;
return oact.sa_handler;
-#endif /* !HAVE_POSIX_SIGNALS */
+#endif /* !HAVE_POSIX_SIGNALS */
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.48 2001/10/25 05:49:30 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.49 2001/11/05 17:46:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#if defined(__alpha)
#ifdef NOFIXADE
int buffer[] = {SSIN_UACPROC, UAC_SIGBUS};
-#endif /* NOFIXADE */
+#endif /* NOFIXADE */
#ifdef NOPRINTADE
int buffer[] = {SSIN_UACPROC, UAC_NOPRINT};
-#endif /* NOPRINTADE */
-#endif /* __alpha */
+#endif /* NOPRINTADE */
+#endif /* __alpha */
#if defined(NOFIXADE) || defined(NOPRINTADE)
(unsigned long) NULL) < 0)
fprintf(stderr, gettext("%s: setsysinfo failed: %s\n"), argv[0], strerror(errno));
#endif
-#endif /* NOFIXADE || NOPRINTADE */
+#endif /* NOFIXADE || NOPRINTADE */
#ifdef __BEOS__
/* BeOS-specific actions on startup */
));
exit(1);
}
-#endif /* __BEOS__ */
+#endif /* __BEOS__ */
/*
* Also make sure that real and effective uids are the same.
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/_deadcode/Attic/predmig.c,v 1.13 2001/10/30 05:38:55 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/_deadcode/Attic/predmig.c,v 1.14 2001/11/05 17:46:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
static bool xfunc_check_stream(Stream node);
static bool xfunc_in_stream(Stream node, Stream stream);
-/* ----------------- MAIN FUNCTIONS ------------------------ */
+/* ----------------- MAIN FUNCTIONS ------------------------ */
/*
** xfunc_do_predmig
** wrapper for Predicate Migration. It calls xfunc_predmig until no
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.81 2001/10/28 06:25:44 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/allpaths.c,v 1.82 2001/11/05 17:46:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
fflush(stdout);
}
-#endif /* OPTIMIZER_DEBUG */
+#endif /* OPTIMIZER_DEBUG */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.47 2001/10/25 05:49:32 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.48 2001/11/05 17:46:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifdef SELECTIVITY_DEBUG
elog(NOTICE, "clause_selectivity: s1 %f", s1);
-#endif /* SELECTIVITY_DEBUG */
+#endif /* SELECTIVITY_DEBUG */
return s1;
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.112 2001/10/30 19:58:58 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.113 2001/11/05 17:46:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/*
* Check for ungrouped variables passed to subplans in targetlist and
* HAVING clause (but not in WHERE or JOIN/ON clauses, since those are
- * evaluated before grouping). We can't do this any earlier because
+ * evaluated before grouping). We can't do this any earlier because
* we must use the preprocessed targetlist for comparisons of grouped
* expressions.
*/
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.72 2001/10/30 19:58:58 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.73 2001/11/05 17:46:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
{
TargetEntry *tle = (TargetEntry *) lfirst(l);
- if (tle->expr && ! IsA(tle->expr, Var))
+ if (tle->expr && !IsA(tle->expr, Var))
{
tlist_has_non_vars = true;
break;
subplan_targetlist,
tlist_has_non_vars);
output_targetlist = lappend(output_targetlist,
- makeTargetEntry(tle->resdom, newexpr));
+ makeTargetEntry(tle->resdom, newexpr));
}
plan->targetlist = output_targetlist;
resdom->restype,
resdom->restypmod,
0);
- newvar->varnoold = 0; /* wasn't ever a plain Var */
+ newvar->varnoold = 0; /* wasn't ever a plain Var */
newvar->varoattno = 0;
return (Node *) newvar;
}
return (firstExpr && secondExpr && nodeTag(firstExpr) == T_Var && nodeTag(secondExpr) == T_Const);
}
-#endif /* ENABLE_KEY_SET_QUERY */
+#endif /* ENABLE_KEY_SET_QUERY */
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/preptlist.c,v 1.45 2001/11/02 20:23:02 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/prep/preptlist.c,v 1.46 2001/11/05 17:46:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
if (COLUMN_IS_DROPPED(att_tup))
new_expr = (Node *) makeNullConst(atttype);
else
-#endif /* _DROP_COLUMN_HACK__ */
+#endif /* _DROP_COLUMN_HACK__ */
new_expr = (Node *) makeVar(result_relation,
attrno,
atttype,
break;
default:
elog(ERROR, "expand_targetlist: unexpected command_type");
- new_expr = NULL; /* keep compiler quiet */
+ new_expr = NULL; /* keep compiler quiet */
break;
}
{
if (attrno == defval[ndef].adnum)
{
- Oid type_id;
+ Oid type_id;
/*
* Found it, convert string representation to node tree.
expr = stringToNode(defval[ndef].adbin);
/*
- * Make sure the value is coerced to the target column type
- * (might not be right type yet if it's not a constant!)
- * This should match the parser's processing of non-defaulted
- * expressions --- see updateTargetListEntry().
+ * Make sure the value is coerced to the target column
+ * type (might not be right type yet if it's not a
+ * constant!) This should match the parser's processing of
+ * non-defaulted expressions --- see
+ * updateTargetListEntry().
*/
type_id = exprType(expr);
{
expr = CoerceTargetExpr(NULL, expr, type_id,
atttype, atttypmod);
+
/*
* This really shouldn't fail; should have checked the
* default's type when it was created ...
/*
* No per-column default, so look for a default for the type itself.
- * If there isn't one, we generate a NULL constant of the correct type.
+ * If there isn't one, we generate a NULL constant of the correct
+ * type.
*/
if (att_tup->attisset)
{
/*
* Set attributes are represented as OIDs no matter what the set
- * element type is, and the element type's default is irrelevant too.
+ * element type is, and the element type's default is irrelevant
+ * too.
*/
hasdefault = false;
typedefault = (Datum) 0;
typedefault = (Datum) 0;
}
else
-#endif /* _DROP_COLUMN_HACK__ */
+#endif /* _DROP_COLUMN_HACK__ */
hasdefault = get_typdefault(atttype, &typedefault);
get_typlenbyval(atttype, &typlen, &typbyval);
typedefault,
!hasdefault,
typbyval,
- false, /* not a set */
+ false, /* not a set */
false);
/*
* If the column is a fixed-length type, it may need a length coercion
- * as well as a type coercion. But NULLs don't need that.
+ * as well as a type coercion. But NULLs don't need that.
*/
if (hasdefault)
expr = coerce_type_typmod(NULL, expr,
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.90 2001/10/30 19:58:58 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.91 2001/11/05 17:46:26 momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
{
Query *query;
List *groupClauses;
-} check_subplans_for_ungrouped_vars_context;
+} check_subplans_for_ungrouped_vars_context;
static bool contain_agg_clause_walker(Node *node, void *context);
static bool pull_agg_clause_walker(Node *node, List **listptr);
static bool contain_subplans_walker(Node *node, void *context);
static bool pull_subplans_walker(Node *node, List **listptr);
static bool check_subplans_for_ungrouped_vars_walker(Node *node,
- check_subplans_for_ungrouped_vars_context *context);
+ check_subplans_for_ungrouped_vars_context * context);
static bool contain_noncachable_functions_walker(Node *node, void *context);
static Node *eval_const_expressions_mutator(Node *node, void *context);
static Expr *simplify_op_or_func(Expr *expr, List *args);
*
* A deficiency in this scheme is that any outer reference var must be
* grouped by itself; we don't recognize groupable expressions within
- * subselects. For example, consider
+ * subselects. For example, consider
* SELECT
* (SELECT x FROM bar where y = (foo.a + foo.b))
* FROM foo
check_subplans_for_ungrouped_vars(Query *query)
{
check_subplans_for_ungrouped_vars_context context;
- List *gl;
+ List *gl;
context.query = query;
+
/*
- * Build a list of the acceptable GROUP BY expressions for use in
- * the walker (to avoid repeated scans of the targetlist within the
+ * Build a list of the acceptable GROUP BY expressions for use in the
+ * walker (to avoid repeated scans of the targetlist within the
* recursive routine).
*/
context.groupClauses = NIL;
}
/*
- * Recursively scan the targetlist and the HAVING clause.
- * WHERE and JOIN/ON conditions are not examined, since they are
- * evaluated before grouping.
+ * Recursively scan the targetlist and the HAVING clause. WHERE and
+ * JOIN/ON conditions are not examined, since they are evaluated
+ * before grouping.
*/
check_subplans_for_ungrouped_vars_walker((Node *) query->targetList,
&context);
static bool
check_subplans_for_ungrouped_vars_walker(Node *node,
- check_subplans_for_ungrouped_vars_context *context)
+ check_subplans_for_ungrouped_vars_context * context)
{
List *gl;
if (node == NULL)
return false;
- if (IsA(node, Const) || IsA(node, Param))
+ if (IsA(node, Const) ||IsA(node, Param))
return false; /* constants are always acceptable */
/*
char *attname;
Assert(var->varno > 0 &&
- (int) var->varno <= length(context->query->rtable));
+ (int) var->varno <= length(context->query->rtable));
rte = rt_fetch(var->varno, context->query->rtable);
attname = get_rte_attribute_name(rte, var->varattno);
elog(ERROR, "Sub-SELECT uses un-GROUPed attribute %s.%s from outer query",
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.210 2001/11/05 05:00:14 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.211 2001/11/05 17:46:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
}
/*
- * XXX It is possible that the targetlist has fewer entries than were in
- * the columns list. We do not consider this an error. Perhaps we
+ * XXX It is possible that the targetlist has fewer entries than were
+ * in the columns list. We do not consider this an error. Perhaps we
* should, if the columns list was explicitly given?
*/
elog(NOTICE, "%s / %s%s will create implicit index '%s' for table '%s'",
cxt->stmtType,
- (strcmp(cxt->stmtType,"ALTER TABLE") == 0) ? "ADD " : "",
+ (strcmp(cxt->stmtType, "ALTER TABLE") == 0) ? "ADD " : "",
(index->primary ? "PRIMARY KEY" : "UNIQUE"),
index->idxname, cxt->relname);
}
applyColumnNames(List *dst, List *src)
{
if (length(src) > length(dst))
- elog(ERROR,"CREATE TABLE AS specifies too many column names");
+ elog(ERROR, "CREATE TABLE AS specifies too many column names");
while (src != NIL && dst != NIL)
{
TargetEntry *d = (TargetEntry *) lfirst(dst);
- ColumnDef *s = (ColumnDef *) lfirst(src);
+ ColumnDef *s = (ColumnDef *) lfirst(src);
Assert(d->resdom && !d->resdom->resjunk);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.59 2001/10/25 05:49:40 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.60 2001/11/05 17:46:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifdef _DROP_COLUMN_HACK__
if (COLUMN_IS_DROPPED(attr))
continue;
-#endif /* _DROP_COLUMN_HACK__ */
+#endif /* _DROP_COLUMN_HACK__ */
if (colnames)
{
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.75 2001/10/25 05:49:40 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.76 2001/11/05 17:46:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifdef _DROP_COLUMN_HACK__
if (COLUMN_IS_DROPPED(attr[i]))
continue;
-#endif /* _DROP_COLUMN_HACK__ */
+#endif /* _DROP_COLUMN_HACK__ */
id->name = palloc(NAMEDATALEN);
StrNCpy(id->name, NameStr(attr[i]->attname), NAMEDATALEN);
id->indirection = NIL;
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.50 2001/10/25 05:49:40 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.51 2001/11/05 17:46:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#if defined(FLEX_SCANNER)
extern void DeleteBuffer(void);
-#endif /* FLEX_SCANNER */
+#endif /* FLEX_SCANNER */
char *parseString; /* the char* which holds the string to be
* parsed */
#if defined(FLEX_SCANNER)
DeleteBuffer();
-#endif /* FLEX_SCANNER */
+#endif /* FLEX_SCANNER */
clearerr(stdin);
{
char *name; /* the symbols's name */
void *addr; /* its relocated virtual address */
-} Export, *ExportPtr;
+} Export, *ExportPtr;
/*
* xlC uses the following structure to list its constructors and
{
void (*init) (void); /* call static constructors */
void (*term) (void); /* call static destructors */
-} Cdtor, *CdtorPtr;
+} Cdtor, *CdtorPtr;
/*
* The void * handle returned from dlopen is actually a ModulePtr.
CdtorPtr cdtors; /* optional C++ constructors */
int nExports; /* the number of exports found */
ExportPtr exports; /* the array of exports */
-} Module, *ModulePtr;
+} Module, *ModulePtr;
/*
* We keep a list of all loaded modules to be able to call the fini
return ret;
}
-#endif /* HAVE_DLOPEN */
+#endif /* HAVE_DLOPEN */
/*
- * $Id: aix.h,v 1.8 2001/10/28 06:25:47 momjian Exp $
+ * $Id: aix.h,v 1.9 2001/11/05 17:46:27 momjian Exp $
*
* @(#)dlfcn.h 1.4 revision of 95/04/25 09:36:52
* This is an unpublished work copyright (c) 1992 HELIOS Software GmbH
#ifdef __cplusplus
}
#endif
-#endif /* HAVE_DLOPEN */
+#endif /* HAVE_DLOPEN */
#include "utils/dynamic_loader.h"
#define pg_dlclose dlclose
#define pg_dlerror dlerror
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: beos.h,v 1.5 2001/10/25 05:49:40 momjian Exp $
+ * $Id: beos.h,v 1.6 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PORT_PROTOS_H
#define PORT_PROTOS_H
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/dynloader/bsdi.c,v 1.17 2001/10/28 06:25:47 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/dynloader/bsdi.c,v 1.18 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
return dld_strerror(dld_errno);
}
-#endif /* not HAVE_DLOPEN */
+#endif /* not HAVE_DLOPEN */
dld_unlink_by_file(handle, 1); \
free(handle); \
} while (0)
-#endif /* not HAVE_DLOPEN */
+#endif /* not HAVE_DLOPEN */
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: dgux.h,v 1.12 2001/10/28 06:25:47 momjian Exp $
+ * $Id: dgux.h,v 1.13 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define pg_dlclose dlclose
#define pg_dlerror dlerror
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)dl.c 5.4 (Berkeley) 2/23/91";
-#endif /* LIBC_SCCS and not lint */
+#endif /* LIBC_SCCS and not lint */
#include
#include
return NULL;
#else
void *vp;
+
#ifndef __ELF__
char buf[BUFSIZ];
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: freebsd.h,v 1.12 2001/10/28 06:25:47 momjian Exp $
+ * $Id: freebsd.h,v 1.13 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
void *BSD44_derived_dlsym(void *handle, const char *name);
void BSD44_derived_dlclose(void *handle);
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
#define pg_dlclose dlclose
#define pg_dlerror dlerror
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: linux.h,v 1.15 2001/10/28 06:25:47 momjian Exp $
+ * $Id: linux.h,v 1.16 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
-#endif /* HAVE_DLOPEN */
+#endif /* HAVE_DLOPEN */
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)dl.c 5.4 (Berkeley) 2/23/91";
-#endif /* LIBC_SCCS and not lint */
+#endif /* LIBC_SCCS and not lint */
#include
#include
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: netbsd.h,v 1.7 2001/10/28 06:25:47 momjian Exp $
+ * $Id: netbsd.h,v 1.8 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
void *BSD44_derived_dlsym(void *handle, const char *name);
void BSD44_derived_dlclose(void *handle);
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
/* port.c */
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)dl.c 5.4 (Berkeley) 2/23/91";
-#endif /* LIBC_SCCS and not lint */
+#endif /* LIBC_SCCS and not lint */
#include
#include
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: openbsd.h,v 1.8 2001/10/28 06:25:47 momjian Exp $
+ * $Id: openbsd.h,v 1.9 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
void *BSD44_derived_dlsym(void *handle, const char *name);
void BSD44_derived_dlclose(void *handle);
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: osf.h,v 1.5 2001/10/28 06:25:47 momjian Exp $
+ * $Id: osf.h,v 1.6 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define pg_dlclose(h) dlclose(h)
#define pg_dlerror() dlerror()
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: sco.h,v 1.10 2001/10/28 06:25:47 momjian Exp $
+ * $Id: sco.h,v 1.11 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/* port.c */
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
-/* $Header: /cvsroot/pgsql/src/backend/port/dynloader/solaris.h,v 1.6 2001/10/28 06:25:47 momjian Exp $ */
+/* $Header: /cvsroot/pgsql/src/backend/port/dynloader/solaris.h,v 1.7 2001/11/05 17:46:27 momjian Exp $ */
#ifndef DYNLOADER_SOLARIS_H
#define DYNLOADER_SOLARIS_H
#define pg_dlclose dlclose
#define pg_dlerror dlerror
-#endif /* DYNLOADER_SOLARIS_H */
+#endif /* DYNLOADER_SOLARIS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: sunos4.h,v 1.10 2001/10/28 06:25:47 momjian Exp $
+ * $Id: sunos4.h,v 1.11 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define pg_dlclose dlclose
#define pg_dlerror dlerror
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: svr4.h,v 1.10 2001/10/28 06:25:47 momjian Exp $
+ * $Id: svr4.h,v 1.11 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define pg_dlclose dlclose
#define pg_dlerror dlerror
-#endif /* DYNLOADER_H */
+#endif /* DYNLOADER_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: ultrix4.h,v 1.9 2001/10/28 06:25:47 momjian Exp $
+ * $Id: ultrix4.h,v 1.10 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
CoreAddr addr; /* starting address of the section */
SCNHDR hdr; /* section header */
RELOC *relocEntries; /* relocation entries */
-} ScnInfo;
+} ScnInfo;
typedef enum
{
DL_NEEDRELOC, /* still need relocation */
DL_RELOCATED, /* no relocation necessary */
DL_INPROG /* relocation in progress */
-} dlRStatus;
+} dlRStatus;
typedef struct JmpTbl
{
char *block; /* the jump table memory block */
struct JmpTbl *next; /* next block */
-} JmpTbl;
+} JmpTbl;
typedef struct dlFile
{
JmpTbl *jmptable; /* the jump table for R_JMPADDR */
struct dlFile *next; /* next member of the archive */
-} dlFile;
+} dlFile;
typedef struct dlSymbol
{
char *name; /* name of the symbol */
long addr; /* address of the symbol */
dlFile *objFile; /* from which file */
-} dlSymbol;
+} dlSymbol;
/*
* prototypes for the dl* interface
extern void dl_printAllSymbols( /* void *handle */ );
extern void dl_setLibraries( /* char *libs */ );
-#endif /* _DL_HEADER_ */
+#endif /* _DL_HEADER_ */
#define pg_dlclose dlclose
#define pg_dlerror dlerror
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
#define pg_dlclose dlclose
#define pg_dlerror dlerror
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
#define pg_dlclose dlclose
#define pg_dlerror dlerror
-#endif /* PORT_PROTOS_H */
+#endif /* PORT_PROTOS_H */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/qnx4/Attic/ipc.h,v 1.5 2001/10/28 06:25:47 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/qnx4/Attic/ipc.h,v 1.6 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define IPC_RMID 0 /* remove identifier */
#define IPC_STAT 1 /* get shm status */
-#endif /* _SYS_IPC_H */
+#endif /* _SYS_IPC_H */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/qnx4/Attic/sem.h,v 1.5 2001/10/28 06:25:47 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/qnx4/Attic/sem.h,v 1.6 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
}
#endif
-#endif /* _SYS_SEM_H */
+#endif /* _SYS_SEM_H */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/qnx4/Attic/shm.h,v 1.5 2001/10/28 06:25:47 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/qnx4/Attic/shm.h,v 1.6 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
}
#endif
-#endif /* _SYS_SHM_H */
+#endif /* _SYS_SHM_H */
-/* $Id: strcasecmp.c,v 1.8 2001/10/25 05:49:40 momjian Exp $ */
+/* $Id: strcasecmp.c,v 1.9 2001/11/05 17:46:26 momjian Exp $ */
/*
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)strcasecmp.c 5.5 (Berkeley) 11/24/87";
-#endif /* LIBC_SCCS and not lint */
+#endif /* LIBC_SCCS and not lint */
#include
#include
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)strtol.c 5.4 (Berkeley) 2/23/91";
-#endif /* LIBC_SCCS and not lint */
+#endif /* LIBC_SCCS and not lint */
#include
#include
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)strtoul.c 8.1 (Berkeley) 6/4/93";
-#endif /* LIBC_SCCS and not lint */
+#endif /* LIBC_SCCS and not lint */
#include
#include
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: float.h,v 1.8 2001/10/28 06:25:47 momjian Exp $
+ * $Id: float.h,v 1.9 2001/11/05 17:46:27 momjian Exp $
*
* NOTES
* These come straight out of ANSI X3.159-1989 (p.18) and
#define DBL_MIN 2.2250738585072014e-308
#define DBL_MAX 1.7976931348623157e+308
-#endif /* FLOAT_H */
+#endif /* FLOAT_H */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.256 2001/11/04 20:12:57 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.257 2001/11/05 17:46:27 momjian Exp $
*
* NOTES
*
pqsignal(SIGTERM, pmdie); /* wait for children and ShutdownDataBase */
pqsignal(SIGALRM, SIG_IGN); /* ignored */
pqsignal(SIGPIPE, SIG_IGN); /* ignored */
- pqsignal(SIGUSR1, sigusr1_handler); /* message from child process */
+ pqsignal(SIGUSR1, sigusr1_handler); /* message from child process */
pqsignal(SIGUSR2, dummy_handler); /* unused, reserve for children */
pqsignal(SIGCHLD, reaper); /* handle child termination */
pqsignal(SIGTTIN, SIG_IGN); /* ignored */
/*
* The timeout for the select() below is normally set on the basis
- * of the time to the next checkpoint. However, if for some reason
- * we don't have a next-checkpoint time, time out after 60 seconds.
- * This keeps checkpoint scheduling from locking up when we get new
- * connection requests infrequently (since we are likely to detect
- * checkpoint completion just after enabling signals below, after
- * we've already made the decision about how long to wait this time).
+ * of the time to the next checkpoint. However, if for some
+ * reason we don't have a next-checkpoint time, time out after 60
+ * seconds. This keeps checkpoint scheduling from locking up when
+ * we get new connection requests infrequently (since we are
+ * likely to detect checkpoint completion just after enabling
+ * signals below, after we've already made the decision about how
+ * long to wait this time).
*/
timeout.tv_sec = 60;
timeout.tv_usec = 0;
}
/*
- * Block all signals until we wait again. (This makes it safe
- * for our signal handlers to do nontrivial work.)
+ * Block all signals until we wait again. (This makes it safe for
+ * our signal handlers to do nontrivial work.)
*/
PG_SETMASK(&BlockSig);
reaper(SIGNAL_ARGS)
{
int save_errno = errno;
+
#ifdef HAVE_WAITPID
int status; /* backend exit status */
+
#else
union wait status; /* backend exit status */
#endif
/*
* Request to schedule a checkpoint
*
- * Ignore request if checkpoint is already running or
- * checkpointing is currently disabled
+ * Ignore request if checkpoint is already running or checkpointing
+ * is currently disabled
*/
if (CheckPointPID == 0 && checkpointed &&
Shutdown == NoShutdown && !FatalError && random_seed != 0)
if (CheckPostmasterSignal(PMSIGNAL_WAKEN_CHILDREN))
{
/*
- * Send SIGUSR2 to all children (triggers AsyncNotifyHandler).
- * See storage/ipc/sinvaladt.c for the use of this.
+ * Send SIGUSR2 to all children (triggers AsyncNotifyHandler). See
+ * storage/ipc/sinvaladt.c for the use of this.
*/
if (Shutdown == NoShutdown)
SignalChildren(SIGUSR2);
int code;
char *name;
char *explain;
-} rerrs[] =
+} rerrs[] =
{
{
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteManip.c,v 1.60 2001/10/28 06:25:49 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteManip.c,v 1.61 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
int *modified;
int *badsql;
int sublevels_up;
-} HandleRIRAttributeRule_context;
+} HandleRIRAttributeRule_context;
static Node *
HandleRIRAttributeRule_mutator(Node *node,
(void *) &context, true);
}
-#endif /* NOT_USED */
+#endif /* NOT_USED */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.46 2001/10/25 05:49:41 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.47 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
long *CurTraceBuf;
#define BMT_LIMIT 200
-#endif /* BMTRACE */
+#endif /* BMTRACE */
int ShowPinTrace = 0;
int Data_Descriptors;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.118 2001/10/25 05:49:41 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.119 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
}
#ifdef BMTRACE
_bm_trace((reln->rd_rel->relisshared ? 0 : MyDatabaseId), RelationGetRelid(reln), blockNum, BufferDescriptorGetBuffer(buf), BMT_ALLOCFND);
-#endif /* BMTRACE */
+#endif /* BMTRACE */
if (!(*foundPtr))
StartBufferIO(buf, true);
#ifdef BMTRACE
_bm_trace((reln->rd_rel->relisshared ? 0 : MyDatabaseId), RelationGetRelid(reln), blockNum, BufferDescriptorGetBuffer(buf), BMT_ALLOCNOTFND);
-#endif /* BMTRACE */
+#endif /* BMTRACE */
LWLockRelease(BufMgrLock);
kill(getpid(), SIGILL);
}
-#endif /* BMTRACE */
+#endif /* BMTRACE */
/*
* SetBufferCommitInfoNeedsSave
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.27 2001/10/28 06:25:49 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v 1.28 2001/11/05 17:46:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifdef BMTRACE
_bm_trace(bf->tag.relId.dbId, bf->tag.relId.relId, bf->tag.blockNum,
BufferDescriptorGetBuffer(bf), BMT_DEALLOC);
-#endif /* BMTRACE */
+#endif /* BMTRACE */
IsNotInQueue(bf);
/* change bf so it points to inFrontOfNew and its successor */
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/file/fd.c,v 1.86 2001/10/28 06:25:49 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/file/fd.c,v 1.87 2001/11/05 17:46:27 momjian Exp $
*
* NOTES:
*
#else
no_files = (long) max_files_per_process;
#endif
-#endif /* HAVE_SYSCONF */
+#endif /* HAVE_SYSCONF */
/*
* Some platforms return hopelessly optimistic values. Apply a
sprintf(buf + strlen(buf), "LEAST");
elog(DEBUG, buf);
}
-#endif /* FDDEBUG */
+#endif /* FDDEBUG */
static void
Delete(File file)
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/freespace/freespace.c,v 1.9 2001/10/28 06:25:49 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/freespace/freespace.c,v 1.10 2001/11/05 17:46:27 momjian Exp $
*
*
* NOTES:
nChunks, FreeSpaceMap->numFreeChunks);
}
-#endif /* FREESPACE_DEBUG */
+#endif /* FREESPACE_DEBUG */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.74 2001/10/30 05:38:55 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.75 2001/11/05 17:46:28 momjian Exp $
*
* NOTES
*
{
void (*function) ();
Datum arg;
-} on_proc_exit_list[MAX_ON_EXITS], on_shmem_exit_list[MAX_ON_EXITS];
+} on_proc_exit_list[MAX_ON_EXITS], on_shmem_exit_list[MAX_ON_EXITS];
static int on_proc_exit_index,
on_shmem_exit_index;
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/pmsignal.c,v 1.2 2001/11/05 01:34:37 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/pmsignal.c,v 1.3 2001/11/05 17:46:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/*
* The postmaster is signaled by its children by sending SIGUSR1. The
- * specific reason is communicated via flags in shared memory. We keep
+ * specific reason is communicated via flags in shared memory. We keep
* a boolean flag for each possible "reason", so that different reasons
- * can be signaled by different backends at the same time. (However,
+ * can be signaled by different backends at the same time. (However,
* if the same reason is signaled more than once simultaneously, the
* postmaster will observe it only once.)
*
* values are atomic, allowing us to dispense with any explicit locking.
*/
-static volatile sig_atomic_t * PMSignalFlags;
+static volatile sig_atomic_t *PMSignalFlags;
/*
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmqueue.c,v 1.18 2001/10/28 06:25:50 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmqueue.c,v 1.19 2001/11/05 17:46:28 momjian Exp $
*
* NOTES
*
dumpQ(queue, "in SHMQueueInsertAfter: end");
#endif
}
-#endif /* NOT_USED */
+#endif /* NOT_USED */
/*--------------------
* SHMQueueNext -- Get the next element from a queue
elog(SHMQUEUE_DEBUG_ELOG, "%s: %s", s, buf);
}
-#endif /* SHMQUEUE_DEBUG */
+#endif /* SHMQUEUE_DEBUG */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.42 2001/11/04 19:55:31 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.43 2001/11/05 17:46:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifdef INVALIDDEBUG
elog(DEBUG, "SIBackendInit: backend id %d", MyBackendId);
-#endif /* INVALIDDEBUG */
+#endif /* INVALIDDEBUG */
/* mark myself active, with all extant messages already read */
stateP->nextMsgNum = segP->maxMsgNum;
* Try to prevent table overflow. When the table is 70% full send a
* WAKEN_CHILDREN request to the postmaster. The postmaster will send
* a SIGUSR2 signal (ordinarily a NOTIFY signal) to all the backends.
- * This will force idle backends to execute a transaction to look through
- * pg_listener for NOTIFY messages, and as a byproduct of the transaction
- * start they will read SI entries.
+ * This will force idle backends to execute a transaction to look
+ * through pg_listener for NOTIFY messages, and as a byproduct of the
+ * transaction start they will read SI entries.
*
* This should never happen if all the backends are actively executing
* queries, but if a backend is sitting idle then it won't be starting
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.103 2001/10/30 05:38:55 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.104 2001/11/05 17:46:28 momjian Exp $
*
* NOTES
* Outside modules can create a lock table and acquire/release
#define LOCK_PRINT(where, lock, type)
#define HOLDER_PRINT(where, holderP)
-#endif /* not LOCK_DEBUG */
+#endif /* not LOCK_DEBUG */
/*
break;
}
}
-#endif /* CHECK_DEADLOCK_RISK */
+#endif /* CHECK_DEADLOCK_RISK */
}
/*
}
}
-#endif /* LOCK_DEBUG */
+#endif /* LOCK_DEBUG */
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lwlock.c,v 1.2 2001/10/25 05:49:42 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lwlock.c,v 1.3 2001/11/05 17:46:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#else /* not LOCK_DEBUG */
#define PRINT_LWDEBUG(a,b,c)
-#endif /* LOCK_DEBUG */
+#endif /* LOCK_DEBUG */
/*
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/s_lock.c,v 1.4 2001/10/28 06:25:51 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/s_lock.c,v 1.5 2001/11/05 17:46:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
rts \n\
");
}
-#endif /* __m68k__ */
+#endif /* __m68k__ */
#if defined(__APPLE__) && defined(__ppc__)
/* used in darwin. */
blr \n\
");
}
-#endif /* __APPLE__ && __ppc__ */
+#endif /* __APPLE__ && __ppc__ */
#if defined(__powerpc__)
/* Note: need a nice gcc constrained asm version so it can be inlined */
blr \n\
");
}
-#endif /* __powerpc__ */
+#endif /* __powerpc__ */
#if defined(__mips__) && !defined(__sgi)
static void
j $31 \n\
");
}
-#endif /* __mips__ && !__sgi */
+#endif /* __mips__ && !__sgi */
#else /* not __GNUC__ */
/***************************************************************************
asm(" rts");
asm(" .data");
}
-#endif /* sun3 */
+#endif /* sun3 */
asm("retl");
asm("nop");
}
-#endif /* NEED_SPARC_TAS_ASM */
+#endif /* NEED_SPARC_TAS_ASM */
#if defined(NEED_I386_TAS_ASM)
/* non gcc i386 based things */
-#endif /* NEED_I386_TAS_ASM */
-#endif /* not __GNUC__ */
+#endif /* NEED_I386_TAS_ASM */
+#endif /* not __GNUC__ */
}
-#endif /* S_LOCK_TEST */
+#endif /* S_LOCK_TEST */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/spin.c,v 1.6 2001/10/28 06:25:51 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/spin.c,v 1.7 2001/11/05 17:46:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
return !IpcSemaphoreTryLock(lock->semId, lock->sem);
}
-#endif /* !HAS_TEST_AND_SET */
+#endif /* !HAS_TEST_AND_SET */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/smgr/Attic/mm.c,v 1.29 2001/10/28 06:25:51 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/smgr/Attic/mm.c,v 1.30 2001/11/05 17:46:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Oid mmct_dbid;
Oid mmct_relid;
BlockNumber mmct_blkno;
-} MMCacheTag;
+} MMCacheTag;
/*
* Shared-memory hash table for main memory relations contains
{
MMCacheTag mmhe_tag;
int mmhe_bufno;
-} MMHashEntry;
+} MMHashEntry;
/*
* MMRelTag -- Unique identifier for each relation that is stored in the
{
Oid mmrt_dbid;
Oid mmrt_relid;
-} MMRelTag;
+} MMRelTag;
/*
* Shared-memory hash table for # blocks in main memory relations contains
{
MMRelTag mmrhe_tag;
int mmrhe_nblocks;
-} MMRelHashEntry;
+} MMRelHashEntry;
#define MMNBUFFERS 10
#define MMNRELATIONS 2
return size;
}
-#endif /* STABLE_MEMORY_STORAGE */
+#endif /* STABLE_MEMORY_STORAGE */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.51 2001/10/28 06:25:51 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.52 2001/11/05 17:46:28 momjian Exp $
*
* NOTES
* This cruft is the server side of PQfn.
fcinfo.isnull = true;
#else
retval = FunctionCallInvoke(&fcinfo);
-#endif /* NO_FASTPATH */
+#endif /* NO_FASTPATH */
if (fcinfo.isnull)
SendFunctionResult(retval, fip->retbyval, 0);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.240 2001/10/28 06:25:51 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.241 2001/11/05 17:46:28 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
#else
int UseNewLine = 0; /* Use EOF as query delimiters */
-#endif /* TCOP_DONTUSENEWLINE */
+#endif /* TCOP_DONTUSENEWLINE */
/*
** Flags for expensive function optimization -- JMH 3/9/92
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.240 $ $Date: 2001/10/28 06:25:51 $\n");
+ puts("$Revision: 1.241 $ $Date: 2001/11/05 17:46:28 $\n");
}
/*
#include "rusagestub.h"
#else
#include
-#endif /* HAVE_GETRUSAGE */
+#endif /* HAVE_GETRUSAGE */
struct rusage Save_r;
struct timeval Save_t;
r.ru_nvcsw - Save_r.ru_nvcsw,
r.ru_nivcsw - Save_r.ru_nivcsw,
r.ru_nvcsw, r.ru_nivcsw);
-#endif /* HAVE_GETRUSAGE */
+#endif /* HAVE_GETRUSAGE */
fprintf(StatFp, "! postgres usage stats:\n");
PrintBufferUsage(StatFp);
/* DisplayTupleCount(StatFp); */
#ifndef ARR_TgString_INITIAL_SIZE
#define ARR_TgString_INITIAL_SIZE 32 /* change this size to suit your
* need */
-#endif /* ARR_TgString_INITIAL_SIZE */
+#endif /* ARR_TgString_INITIAL_SIZE */
typedef struct Arr_TgString
{
size_t size;
size_t valSize;
TgString *val;
-} Arr_TgString;
+} Arr_TgString;
#define newArr_TgString() \
(Arr_TgString *) NewVarray(ARR_TgString_INITIAL_SIZE, sizeof(TgString))
AppendVarray((Varray *) (A), (void *) (V), (CopyingFunct) copyTgString)
#define deleteArr_TgString(A) FreeVarray(A)
-#endif /* _ARR_TgString_ */
+#endif /* _ARR_TgString_ */
/* -- Defining types and function for Arr_TgElementPtr type -- */
/* -- the following must be supplied by the user:
#ifndef ARR_TgElementPtr_INITIAL_SIZE
#define ARR_TgElementPtr_INITIAL_SIZE 32 /* change this size to
* suit your need */
-#endif /* ARR_TgElementPtr_INITIAL_SIZE */
+#endif /* ARR_TgElementPtr_INITIAL_SIZE */
typedef struct Arr_TgElementPtr
{
size_t size;
size_t valSize;
TgElementPtr *val;
-} Arr_TgElementPtr;
+} Arr_TgElementPtr;
#define newArr_TgElementPtr() \
(Arr_TgElementPtr *) NewVarray(ARR_TgElementPtr_INITIAL_SIZE, sizeof(TgElementPtr))
AppendVarray((Varray *) (A), (void *) (V), (CopyingFunct) copyTgElementPtr)
#define deleteArr_TgElementPtr(A) FreeVarray(A)
-#endif /* _ARR_TgElementPtr_ */
+#endif /* _ARR_TgElementPtr_ */
/* -- Defining types and function for Arr_TgNodePtr type -- */
/* -- the following must be supplied by the user:
#ifndef ARR_TgNodePtr_INITIAL_SIZE
#define ARR_TgNodePtr_INITIAL_SIZE 32 /* change this size to suit your
* need */
-#endif /* ARR_TgNodePtr_INITIAL_SIZE */
+#endif /* ARR_TgNodePtr_INITIAL_SIZE */
typedef struct Arr_TgNodePtr
{
size_t size;
size_t valSize;
TgNodePtr *val;
-} Arr_TgNodePtr;
+} Arr_TgNodePtr;
#define newArr_TgNodePtr() \
(Arr_TgNodePtr *) NewVarray(ARR_TgNodePtr_INITIAL_SIZE, sizeof(TgNodePtr))
#define deleteArr_TgNodePtr(A) FreeVarray(A)
-#endif /* _ARR_TgNodePtr_ */
+#endif /* _ARR_TgNodePtr_ */
size_t maxObj; /* max. number of objects in this array */
size_t size; /* size of each element in the array */
void *val; /* array of elements */
-} Varray;
+} Varray;
/* type for custom copying function */
typedef void (*CopyingFunct) (void *from, void *to);
extern Varray *NewVarray(size_t nobj, size_t size);
extern int AppendVarray(Varray * array, void *value, CopyingFunct copy);
-#endif /* _VARRAY_H_ */
+#endif /* _VARRAY_H_ */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: tgRecipe.h,v 1.20 2001/10/30 05:38:55 momjian Exp $
+ * $Id: tgRecipe.h,v 1.21 2001/11/05 17:46:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
y;
} Point; /* this should match whatever is in
+ *
*
* geo-decls.h */
-#endif /* TIOGA_FRONTEND */
+#endif /* TIOGA_FRONTEND */
typedef enum
{
TG_INGRED,
TG_EYE,
TG_RECIPE
-} TgElemType;
+} TgElemType;
typedef enum
{
TG_C,
TG_RECIPE_GRAPH,
TG_COMPILED
-} TgSrcLangType;
+} TgSrcLangType;
typedef enum
{
TG_TEE_NODE /* tee nodes are not stored in the db we
* create them when we read the recipe
* back */
-} TgNodeType;
+} TgNodeType;
/* -- type definition for setting up in memory Tioga recipe structure -- */
/* -- see 'recipe-schema.sql' for their corresponding database types -- */
char *src; /* source code for this element */
TgSrcLangType srcLang; /* source language */
char *owner; /* owner recipe name */
-} TgElement;
+} TgElement;
/* C structure representation of a Tioga Node */
* NULL TgNodePtr indicates a run-time
* parameter */
Arr_TgNodePtr *outNodes; /* variable array of out node pointers. */
-} TgNode;
+} TgNode;
/* C structure representation of a Tioga Recipe */
typedef struct _tgrecipe
* recipe, elements may be shared by
* multiple nodes */
-} TgRecipe;
+} TgRecipe;
/* functions defined in tgRecipe.c */
extern TgRecipe *retrieveRecipe(char *name);
/* -----------------------------------------------------------------------
* ascii.c
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/ascii.c,v 1.11 2001/10/28 06:25:51 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/ascii.c,v 1.12 2001/11/05 17:46:28 momjian Exp $
*
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
*
);
}
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.76 2001/10/28 06:25:51 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.77 2001/11/05 17:46:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
tz = 0; /* assume GMT if mktime failed */
#elif defined(HAVE_INT_TIMEZONE)
tz = ((tmp->tm_isdst > 0) ? (TIMEZONE_GLOBAL - 3600) : TIMEZONE_GLOBAL);
-#endif /* HAVE_INT_TIMEZONE */
+#endif /* HAVE_INT_TIMEZONE */
#else /* not (HAVE_TM_ZONE || HAVE_INT_TIMEZONE) */
tm->tm_isdst = 0;
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/encode.c,v 1.5 2001/10/28 06:25:52 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/encode.c,v 1.6 2001/11/05 17:46:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
{
const char *name;
struct pg_encoding enc;
-} enclist[] =
+} enclist[] =
{
{
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.76 2001/10/28 06:25:52 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.77 2001/11/05 17:46:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#if !defined(nextstep)
extern double cbrt(double x);
#endif
-#endif /* HAVE_CBRT */
+#endif /* HAVE_CBRT */
#ifndef HAVE_RINT
#define rint my_rint
#else
extern double rint(double x);
-#endif /* HAVE_RINT */
-#endif /* NeXT check */
+#endif /* HAVE_RINT */
+#endif /* NeXT check */
static void CheckFloat4Val(double val);
if (val != 0.0 && fabs(val) < FLOAT4_MIN)
elog(ERROR, "Bad float4 input format -- underflow");
return;
-#endif /* UNSAFE_FLOATS */
+#endif /* UNSAFE_FLOATS */
}
/*
if (val != 0.0 && fabs(val) < FLOAT8_MIN)
elog(ERROR, "Bad float8 input format -- underflow");
return;
-#endif /* UNSAFE_FLOATS */
+#endif /* UNSAFE_FLOATS */
}
/*
w = TWO52[sx] + x;
return w - TWO52[sx];
}
-#endif /* !HAVE_RINT */
+#endif /* !HAVE_RINT */
#ifndef HAVE_CBRT
return isneg ? -tmpres : tmpres;
}
-#endif /* !HAVE_CBRT */
+#endif /* !HAVE_CBRT */
/* -----------------------------------------------------------------------
* formatting.c
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.43 2001/10/28 06:25:52 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.44 2001/11/05 17:46:29 momjian Exp $
*
*
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
}
}
-#endif /* DEBUG */
+#endif /* DEBUG */
/*****************************************************************************
* Private utils
elog(DEBUG_elog_output, "\n\t\tUsed positions: %d,\n\t\tFree positions: %d",
count, free_i);
}
-#endif /* DEBUG */
+#endif /* DEBUG */
/* ----------
* Skip TM / th in FROM_CHAR
*
* 1998 Jan Wieck
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.47 2001/10/28 06:25:52 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.48 2001/11/05 17:46:29 momjian Exp $
*
* ----------
*/
printf("\n");
}
-#endif /* NUMERIC_DEBUG */
+#endif /* NUMERIC_DEBUG */
/* ----------
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.47 2001/10/28 06:25:52 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.48 2001/11/05 17:46:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
errno = ERANGE;
elog(ERROR, "pg_atoi: error reading \"%s\": %m", s);
}
-#endif /* HAVE_LONG_INT_64 */
+#endif /* HAVE_LONG_INT_64 */
break;
case sizeof(int16):
if (l < SHRT_MIN)
* The PostgreSQL locale utils.
*
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/pg_locale.c,v 1.12 2001/10/28 06:25:52 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/pg_locale.c,v 1.13 2001/11/05 17:46:29 momjian Exp $
*
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
*
return &CurrentLocaleConv;
}
-#endif /* USE_LOCALE */
+#endif /* USE_LOCALE */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/regexp.c,v 1.37 2001/10/25 05:49:45 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/regexp.c,v 1.38 2001/11/05 17:46:29 momjian Exp $
*
* Alistair Crooks added the code for the regex caching
* agc - cached the regular expressions used - there's a good chance
#if defined(DISABLE_XOPEN_NLS)
#undef _XOPEN_SOURCE
-#endif /* DISABLE_XOPEN_NLS */
+#endif /* DISABLE_XOPEN_NLS */
/* this is the number of cached regular expressions held. */
#ifndef MAX_CACHED_RES
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.101 2001/10/28 06:25:53 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.102 2001/11/05 17:46:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
return (bool) result;
#else /* not USE_LOCALE */
return true; /* We must be in C locale, which is OK */
-#endif /* USE_LOCALE */
+#endif /* USE_LOCALE */
}
/*
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.85 2001/10/28 06:25:53 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.86 2001/11/05 17:46:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifdef CACHEDEBUG
CACHE3_elog(DEBUG, "SearchCatCache(%s): found in bucket %d",
cache->cc_relname, hash);
-#endif /* CACHEDEBUG */
+#endif /* CACHEDEBUG */
return &ct->tuple;
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.148 2001/10/28 06:25:53 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.149 2001/11/05 17:46:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifdef ENABLE_REINDEX_NAILED_RELATIONS
static void RelationReloadClassinfo(Relation relation);
-#endif /* ENABLE_REINDEX_NAILED_RELATIONS */
+#endif /* ENABLE_REINDEX_NAILED_RELATIONS */
static void RelationFlushRelation(Relation relation);
static Relation RelationNameCacheGetRelation(const char *relationName);
static void init_irels(void);
{
#ifdef _DROP_COLUMN_HACK__
bool columnDropped = false;
-#endif /* _DROP_COLUMN_HACK__ */
+#endif /* _DROP_COLUMN_HACK__ */
atttup = AttributeRelidNumIndexScan(attrel,
ObjectIdGetDatum(RelationGetRelid(relation)),
ObjectIdGetDatum(RelationGetRelid(relation)),
Int32GetDatum(DROPPED_COLUMN_INDEX(i)));
if (!HeapTupleIsValid(atttup))
-#endif /* _DROP_COLUMN_HACK__ */
+#endif /* _DROP_COLUMN_HACK__ */
elog(ERROR, "cannot find attribute %d of relation %s", i,
RelationGetRelationName(relation));
#ifdef _DROP_COLUMN_HACK__
columnDropped = true;
-#endif /* _DROP_COLUMN_HACK__ */
+#endif /* _DROP_COLUMN_HACK__ */
}
relation->rd_att->attrs[i - 1] = attp =
#ifdef _DROP_COLUMN_HACK__
if (columnDropped)
continue;
-#endif /* _DROP_COLUMN_HACK__ */
+#endif /* _DROP_COLUMN_HACK__ */
/* Update if this attribute have a constraint */
if (attp->attnotnull)
return;
}
-#endif /* ENABLE_REINDEX_NAILED_RELATIONS */
+#endif /* ENABLE_REINDEX_NAILED_RELATIONS */
/*
* RelationClearRelation
{
#ifdef ENABLE_REINDEX_NAILED_RELATIONS
RelationReloadClassinfo(relation);
-#endif /* ENABLE_REINDEX_NAILED_RELATIONS */
+#endif /* ENABLE_REINDEX_NAILED_RELATIONS */
return;
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.90 2001/10/25 05:49:46 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.91 2001/11/05 17:46:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
write_syslog(syslog_level, msg_buf + timestamp_size);
}
-#endif /* ENABLE_SYSLOG */
+#endif /* ENABLE_SYSLOG */
/* syslog doesn't want a trailing newline, but other destinations do */
strcat(msg_buf, "\n");
syslog(level, "[%lu] %s", seq, line);
}
}
-#endif /* ENABLE_SYSLOG */
+#endif /* ENABLE_SYSLOG */
static void
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.56 2001/10/25 05:49:50 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.57 2001/11/05 17:46:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
MemSet(retval, 0, Max(sizeof(int64), 8));
*retval = X;
return PointerGetDatum(retval);
-#endif /* INT64_IS_BUSTED */
+#endif /* INT64_IS_BUSTED */
}
Datum
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/hash/pg_crc.c,v 1.5 2001/10/28 06:25:54 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/hash/pg_crc.c,v 1.6 2001/11/05 17:46:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
INT64CONST(0xD80C07CD676F8394), INT64CONST(0x9AFCE626CE85B507)
};
-#endif /* INT64_IS_BUSTED */
+#endif /* INT64_IS_BUSTED */
* WIN1250 client encoding support contributed by Pavel Behal
* SJIS UDC (NEC selection IBM kanji) support contributed by Eiji Tokuya
*
- * $Id: conv.c,v 1.34 2001/10/28 06:25:54 momjian Exp $
+ * $Id: conv.c,v 1.35 2001/11/05 17:46:30 momjian Exp $
*
*
*/
#include "Unicode/utf8_to_alt.map"
#include "Unicode/utf8_to_koi8r.map"
#include "Unicode/utf8_to_win1251.map"
-#endif /* UNICODE_CONVERSION */
+#endif /* UNICODE_CONVERSION */
/*
* SJIS alternative code.
{
utf_to_local(utf, iso, ULmapISO8859_5, sizeof(ULmapISO8859_5) / sizeof(pg_utf_to_local), len);
}
-#endif /* NOT_USED */
+#endif /* NOT_USED */
/*
* Cyrillic charsets
{
local_to_utf(iso, utf, LUmapISO8859_5, sizeof(LUmapISO8859_5) / sizeof(pg_local_to_utf), PG_LATIN5, len);
}
-#endif /* NOT_USED */
+#endif /* NOT_USED */
#define UTF_ISO8859(_id_) \
static void \
},
};
-#endif /* UNICODE_CONVERSION */
+#endif /* UNICODE_CONVERSION */
* to contain some useful information. Mechanism differs wildly across
* platforms.
*
- * $Header: /cvsroot/pgsql/src/backend/utils/misc/ps_status.c,v 1.9 2001/10/28 06:25:57 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/misc/ps_status.c,v 1.10 2001/11/05 17:46:30 momjian Exp $
*
* Copyright 2000 by PostgreSQL Global Development Group
* various details abducted from various places
#else /* PS_USE_CLOBBER_ARGV */
static char *ps_buffer; /* will point to argv area */
static size_t ps_buffer_size; /* space determined at run time */
-#endif /* PS_USE_CLOBBER_ARGV */
+#endif /* PS_USE_CLOBBER_ARGV */
static size_t ps_buffer_fixed_size; /* size of the constant prefix */
new_environ[i] = NULL;
environ = new_environ;
}
-#endif /* PS_USE_CLOBBER_ARGV */
+#endif /* PS_USE_CLOBBER_ARGV */
}
/*
#ifdef PS_USE_CHANGE_ARGV
save_argv[0] = ps_buffer;
save_argv[1] = NULL;
-#endif /* PS_USE_CHANGE_ARGV */
+#endif /* PS_USE_CHANGE_ARGV */
#ifdef PS_USE_CLOBBER_ARGV
save_argv[1] = NULL;
-#endif /* PS_USE_CLOBBER_ARGV */
+#endif /* PS_USE_CLOBBER_ARGV */
/*
* Make fixed prefix of ps display.
#endif
ps_buffer_fixed_size = strlen(ps_buffer);
-#endif /* not PS_USE_NONE */
+#endif /* not PS_USE_NONE */
}
pst.pst_command = ps_buffer;
pstat(PSTAT_SETCMD, pst, strlen(ps_buffer), 0, 0);
}
-#endif /* PS_USE_PSTAT */
+#endif /* PS_USE_PSTAT */
#ifdef PS_USE_PS_STRINGS
PS_STRINGS->ps_nargvstr = 1;
PS_STRINGS->ps_argvstr = ps_buffer;
-#endif /* PS_USE_PS_STRINGS */
+#endif /* PS_USE_PS_STRINGS */
#ifdef PS_USE_CLOBBER_ARGV
{
cp++)
*cp = PS_PADDING;
}
-#endif /* PS_USE_CLOBBER_ARGV */
-#endif /* not PS_USE_NONE */
+#endif /* PS_USE_CLOBBER_ARGV */
+#endif /* not PS_USE_NONE */
}
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/aset.c,v 1.43 2001/10/28 06:25:57 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/aset.c,v 1.44 2001/11/05 17:46:30 momjian Exp $
*
* NOTE:
* This is a new (Feb. 05, 1999) implementation of the allocation set
}
}
-#endif /* MEMORY_CONTEXT_CHECKING */
+#endif /* MEMORY_CONTEXT_CHECKING */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.36 2001/11/04 04:05:36 pjw Exp $
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.37 2001/11/05 17:46:30 momjian Exp $
*
*
*
* - Fix handling of {data/schema}-only restores when using a full
- * backup file; prior version was restoring schema in data-only
+ * backup file; prior version was restoring schema in data-only
* restores. Added enum to make code easier to understand.
*
*-------------------------------------------------------------------------
#include "pqexpbuffer.h"
#include "libpq/libpq-fs.h"
-typedef enum _teReqs_ {
+typedef enum _teReqs_
+{
REQ_SCHEMA = 1,
- REQ_DATA = 2,
- REQ_ALL = REQ_SCHEMA + REQ_DATA
+ REQ_DATA = 2,
+ REQ_ALL = REQ_SCHEMA + REQ_DATA
} teReqs;
static void _SortToc(ArchiveHandle *AH, TocSortCompareFn fn);
static void _reconnectAsOwner(ArchiveHandle *AH, const char *dbname, TocEntry *te);
static void _reconnectAsUser(ArchiveHandle *AH, const char *dbname, const char *user);
-static teReqs _tocEntryRequired(TocEntry *te, RestoreOptions *ropt);
+static teReqs _tocEntryRequired(TocEntry *te, RestoreOptions *ropt);
static void _disableTriggersIfNecessary(ArchiveHandle *AH, TocEntry *te, RestoreOptions *ropt);
static void _enableTriggersIfNecessary(ArchiveHandle *AH, TocEntry *te, RestoreOptions *ropt);
static TocEntry *_getTocEntry(ArchiveHandle *AH, int id);
reqs = _tocEntryRequired(te, ropt);
- if ((reqs & REQ_DATA) != 0) /* We loaded the data */
+ if ((reqs & REQ_DATA) != 0) /* We loaded the data */
{
ahlog(AH, 1, "fixing up large object cross-reference for %s\n", te->name);
FixupBlobRefs(AH, te->name);
static teReqs
_tocEntryRequired(TocEntry *te, RestoreOptions *ropt)
{
- teReqs res = 3; /* Schema = 1, Data = 2, Both = 3 */
+ teReqs res = 3; /* Schema = 1, Data = 2, Both = 3 */
/* If it's an ACL, maybe ignore it */
if (ropt->aclsSkip && strcmp(te->desc, "ACL") == 0)
return 0;
}
- /* Check if we had a dataDumper. Indicates if the entry is schema or data */
- if (!te->hadDumper) {
- /* Special Case: If 'SEQUENCE SET' then it is considered a data entry */
- if (strcmp(te->desc, "SEQUENCE SET") == 0) {
- res = res & REQ_DATA;
- } else {
+ /*
+ * Check if we had a dataDumper. Indicates if the entry is schema or
+ * data
+ */
+ if (!te->hadDumper)
+ {
+ /*
+ * Special Case: If 'SEQUENCE SET' then it is considered a data
+ * entry
+ */
+ if (strcmp(te->desc, "SEQUENCE SET") == 0)
+ res = res & REQ_DATA;
+ else
res = res & ~REQ_DATA;
- }
}
/* Mask it if we only want schema */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.h,v 1.40 2001/11/04 04:05:36 pjw Exp $
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.h,v 1.41 2001/11/05 17:46:30 momjian Exp $
*
* - Initial version.
#define K_VERS_MAJOR 1
#define K_VERS_MINOR 5
-#define K_VERS_REV 7
+#define K_VERS_REV 7
/* Data block types */
#define BLK_DATA 1
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_dump.h,v 1.75 2001/10/28 06:25:58 momjian Exp $
+ * $Id: pg_dump.h,v 1.76 2001/11/05 17:46:30 momjian Exp $
*
*
extern const char *fmtId(const char *identifier, bool force_quotes);
extern void exit_nicely(void);
-#endif /* PG_DUMP_H */
+#endif /* PG_DUMP_H */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_restore.c,v 1.28 2001/11/04 04:05:36 pjw Exp $
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_restore.c,v 1.29 2001/11/05 17:46:30 momjian Exp $
*
*
{"use-set-session-authorization", no_argument, &use_setsessauth, 1},
{NULL, 0, NULL, 0}
};
-#endif /* HAVE_GETOPT_LONG */
+#endif /* HAVE_GETOPT_LONG */
#ifdef ENABLE_NLS
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.62 2001/10/28 06:25:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.63 2001/11/05 17:46:30 momjian Exp $
*/
#include "postgres_fe.h"
#include "command.h"
* directory, so if someone wants to code this here instead...
*/
dir = "/";
-#endif /* WIN32 */
+#endif /* WIN32 */
}
if (chdir(dir) == -1)
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/command.h,v 1.12 2001/10/28 06:25:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/command.h,v 1.13 2001/11/05 17:46:30 momjian Exp $
*/
#ifndef COMMAND_H
#define COMMAND_H
printQueryOpt *popt,
bool quiet);
-#endif /* COMMAND_H */
+#endif /* COMMAND_H */
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.37 2001/10/25 05:49:53 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.38 2001/11/05 17:46:30 momjian Exp $
*/
#include "postgres_fe.h"
}
errno = save_errno; /* just in case the write changed it */
}
-#endif /* not WIN32 */
+#endif /* not WIN32 */
/*
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.16 2001/10/28 06:25:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.17 2001/11/05 17:46:31 momjian Exp $
*/
#ifndef COMMON_H
#define COMMON_H
#ifndef WIN32
extern void handle_sigint(SIGNAL_ARGS);
-#endif /* not WIN32 */
+#endif /* not WIN32 */
extern PGresult *PSQLexec(const char *query);
extern bool SendQuery(const char *query);
-#endif /* COMMON_H */
+#endif /* COMMON_H */
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/describe.h,v 1.12 2001/10/28 06:25:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/describe.h,v 1.13 2001/11/05 17:46:31 momjian Exp $
*/
#ifndef DESCRIBE_H
#define DESCRIBE_H
/* \dt, \di, \ds, \dS, etc. */
bool listTables(const char *infotype, const char *name, bool desc);
-#endif /* DESCRIBE_H */
+#endif /* DESCRIBE_H */
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/input.h,v 1.14 2001/10/28 06:25:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/input.h,v 1.15 2001/11/05 17:46:31 momjian Exp $
*/
#ifndef INPUT_H
#define INPUT_H
void initializeInput(int flags);
bool saveHistory(char *fname);
-#endif /* INPUT_H */
+#endif /* INPUT_H */
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/large_obj.h,v 1.10 2001/10/28 06:25:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/large_obj.h,v 1.11 2001/11/05 17:46:31 momjian Exp $
*/
#ifndef LARGE_OBJ_H
#define LARGE_OBJ_H
bool do_lo_unlink(const char *loid_arg);
bool do_lo_list(void);
-#endif /* LARGE_OBJ_H */
+#endif /* LARGE_OBJ_H */
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.42 2001/10/28 06:25:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.43 2001/11/05 17:46:31 momjian Exp $
*/
#include "postgres_fe.h"
#include "mainloop.h"
* ready
*/
pqsignal(SIGINT, handle_sigint); /* control-C => cancel */
-#endif /* not WIN32 */
+#endif /* not WIN32 */
if (slashCmdStatus == CMD_NEWEDIT)
{
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.h,v 1.12 2001/10/28 06:25:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.h,v 1.13 2001/11/05 17:46:31 momjian Exp $
*/
#ifndef MAINLOOP_H
#define MAINLOOP_H
int MainLoop(FILE *source);
-#endif /* MAINLOOP_H */
+#endif /* MAINLOOP_H */
-/* $Id: mbprint.h,v 1.3 2001/10/28 06:25:58 momjian Exp $ */
+/* $Id: mbprint.h,v 1.4 2001/11/05 17:46:31 momjian Exp $ */
#ifndef MBPRINT_H
#define MBPRINT_H
pg_wchar utf2ucs(const unsigned char *c);
unsigned char *mbvalidate(unsigned char *pwcs);
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
int pg_wcswidth(unsigned char *pwcs, int len);
-#endif /* MBPRINT_H */
+#endif /* MBPRINT_H */
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/print.h,v 1.11 2001/10/28 06:25:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/print.h,v 1.12 2001/11/05 17:46:31 momjian Exp $
*/
#ifndef PRINT_H
#define PRINT_H
void
printQuery(const PGresult *result, const printQueryOpt *opt, FILE *fout);
-#endif /* PRINT_H */
+#endif /* PRINT_H */
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/prompt.h,v 1.10 2001/10/28 06:25:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/prompt.h,v 1.11 2001/11/05 17:46:31 momjian Exp $
*/
#ifndef PROMPT_H
#define PROMPT_H
char *get_prompt(promptStatus_t status);
-#endif /* PROMPT_H */
+#endif /* PROMPT_H */
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.53 2001/10/28 06:25:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.54 2001/11/05 17:46:31 momjian Exp $
*/
#include "postgres_fe.h"
#include
#include
#include
-#endif /* WIN32 */
+#endif /* WIN32 */
#ifdef HAVE_GETOPT_H
#include
};
int optindex;
-#endif /* HAVE_GETOPT_LONG */
+#endif /* HAVE_GETOPT_LONG */
extern char *optarg;
extern int optind;
* options.
*/
while ((c = getopt(argc, argv, "aAc:d:eEf:F:h:Hlno:p:P:qR:sStT:uU:v:VWxX?-")) != -1)
-#endif /* not HAVE_GETOPT_LONG */
+#endif /* not HAVE_GETOPT_LONG */
{
switch (c)
{
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/stringutils.h,v 1.16 2001/10/28 06:25:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/stringutils.h,v 1.17 2001/11/05 17:46:31 momjian Exp $
*/
#ifndef STRINGUTILS_H
#define STRINGUTILS_H
unsigned int *token_pos,
int encoding);
-#endif /* STRINGUTILS_H */
+#endif /* STRINGUTILS_H */
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.40 2001/10/28 06:25:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.41 2001/11/05 17:46:31 momjian Exp $
*/
/*----------------------------------------------------------------------
return s;
}
-#endif /* 0 */
+#endif /* 0 */
-#endif /* USE_READLINE */
+#endif /* USE_READLINE */
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/variables.h,v 1.9 2001/10/25 05:49:54 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/variables.h,v 1.10 2001/11/05 17:46:31 momjian Exp $
*/
/*
bool DeleteVariable(VariableSpace space, const char *name);
void DestroyVariableSpace(VariableSpace space);
-#endif /* VARIABLES_H */
+#endif /* VARIABLES_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: attnum.h,v 1.14 2001/10/28 06:25:59 momjian Exp $
+ * $Id: attnum.h,v 1.15 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define AttrOffsetGetAttrNumber(attributeOffset) \
((AttrNumber) (1 + attributeOffset))
-#endif /* ATTNUM_H */
+#endif /* ATTNUM_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: clog.h,v 1.4 2001/10/28 06:25:59 momjian Exp $
+ * $Id: clog.h,v 1.5 2001/11/05 17:46:31 momjian Exp $
*/
#ifndef CLOG_H
#define CLOG_H
extern void clog_undo(XLogRecPtr lsn, XLogRecord *record);
extern void clog_desc(char *buf, uint8 xl_info, char *rec);
-#endif /* CLOG_H */
+#endif /* CLOG_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: genam.h,v 1.30 2001/11/02 16:30:29 tgl Exp $
+ * $Id: genam.h,v 1.31 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
uint16 numberOfKeys, ScanKey key);
extern void IndexScanEnd(IndexScanDesc scan);
-#endif /* GENAM_H */
+#endif /* GENAM_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: gist.h,v 1.34 2001/10/28 06:25:59 momjian Exp $
+ * $Id: gist.h,v 1.35 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/* gistget.c */
extern Datum gistgettuple(PG_FUNCTION_ARGS);
-#endif /* GIST_H */
+#endif /* GIST_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: gistscan.h,v 1.18 2001/10/28 06:25:59 momjian Exp $
+ * $Id: gistscan.h,v 1.19 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void gistadjscans(Relation r, int op, BlockNumber blkno, OffsetNumber offnum);
extern void AtEOXact_gist(void);
-#endif /* GISTSCAN_H */
+#endif /* GISTSCAN_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: hash.h,v 1.41 2001/10/28 06:25:59 momjian Exp $
+ * $Id: hash.h,v 1.42 2001/11/05 17:46:31 momjian Exp $
*
* NOTES
* modeled after Margo Seltzer's hash implementation for unix.
extern void hash_undo(XLogRecPtr lsn, XLogRecord *record);
extern void hash_desc(char *buf, uint8 xl_info, char *rec);
-#endif /* HASH_H */
+#endif /* HASH_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: heapam.h,v 1.71 2001/11/02 16:30:29 tgl Exp $
+ * $Id: heapam.h,v 1.72 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Datum fastgetattr(HeapTuple tup, int attnum, TupleDesc tupleDesc,
bool *isnull);
-#endif /* defined(DISABLE_COMPLEX_MACRO) */
+#endif /* defined(DISABLE_COMPLEX_MACRO) */
/* ----------------
extern Relation heap_open(Oid relationId, LOCKMODE lockmode);
extern Relation heap_openr(const char *relationName, LOCKMODE lockmode);
+
#define heap_close(r,l) relation_close(r,l)
extern HeapScanDesc heap_beginscan(Relation relation, int atend,
extern void heap_freetuple(HeapTuple tuple);
extern HeapTuple heap_addheader(int natts, Size structlen, void *structure);
-#endif /* HEAPAM_H */
+#endif /* HEAPAM_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: hio.h,v 1.21 2001/10/28 06:25:59 momjian Exp $
+ * $Id: hio.h,v 1.22 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Buffer RelationGetBufferForTuple(Relation relation, Size len,
Buffer otherBuffer);
-#endif /* HIO_H */
+#endif /* HIO_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: htup.h,v 1.50 2001/10/28 06:25:59 momjian Exp $
+ * $Id: htup.h,v 1.51 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define HeapTupleHasExtended(tuple) \
((((HeapTuple)(tuple))->t_data->t_infomask & HEAP_HASEXTENDED) != 0)
-#endif /* HTUP_H */
+#endif /* HTUP_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: ibit.h,v 1.17 2001/10/28 06:25:59 momjian Exp $
+ * $Id: ibit.h,v 1.18 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
#define IndexAttributeBitMapIsValid(bits) PointerIsValid(bits)
-#endif /* IBIT_H */
+#endif /* IBIT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: iqual.h,v 1.17 2001/10/28 06:25:59 momjian Exp $
+ * $Id: iqual.h,v 1.18 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern bool index_keytest(IndexTuple tuple, TupleDesc tupdesc,
int scanKeySize, ScanKey key);
-#endif /* IQUAL_H */
+#endif /* IQUAL_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: istrat.h,v 1.22 2001/10/28 06:25:59 momjian Exp $
+ * $Id: istrat.h,v 1.23 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
StrategyNumber maxSupportNumber,
AttrNumber maxAttributeNumber);
-#endif /* ISTRAT_H */
+#endif /* ISTRAT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: itup.h,v 1.32 2001/10/25 05:49:55 momjian Exp $
+ * $Id: itup.h,v 1.33 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
ItemPointer heapItemPointer);
extern void CopyIndexTuple(IndexTuple source, IndexTuple *target);
-#endif /* ITUP_H */
+#endif /* ITUP_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nbtree.h,v 1.58 2001/10/28 06:25:59 momjian Exp $
+ * $Id: nbtree.h,v 1.59 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void _bt_spool(BTItem btitem, BTSpool *btspool);
extern void _bt_leafbuild(BTSpool *btspool, BTSpool *spool2);
-#endif /* NBTREE_H */
+#endif /* NBTREE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: printtup.h,v 1.17 2001/10/28 06:25:59 momjian Exp $
+ * $Id: printtup.h,v 1.18 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern bool getTypeOutputInfo(Oid type, Oid *typOutput, Oid *typElem,
bool *typIsVarlena);
-#endif /* PRINTTUP_H */
+#endif /* PRINTTUP_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: relscan.h,v 1.24 2001/10/28 06:25:59 momjian Exp $
+ * $Id: relscan.h,v 1.25 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
#define IndexScanIsValid(scan) PointerIsValid(scan)
-#endif /* RELSCAN_H */
+#endif /* RELSCAN_H */
*
* Resource managers definition
*
- * $Id: rmgr.h,v 1.8 2001/10/28 06:25:59 momjian Exp $
+ * $Id: rmgr.h,v 1.9 2001/11/05 17:46:31 momjian Exp $
*/
#ifndef RMGR_H
#define RMGR_H
#define RM_SEQ_ID 15
#define RM_MAX_ID RM_SEQ_ID
-#endif /* RMGR_H */
+#endif /* RMGR_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: rtree.h,v 1.26 2001/10/28 06:25:59 momjian Exp $
+ * $Id: rtree.h,v 1.27 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern RegProcedure RTMapOperator(Relation r, AttrNumber attnum,
RegProcedure proc);
-#endif /* RTREE_H */
+#endif /* RTREE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: rtscan.h,v 1.12 2001/10/28 06:25:59 momjian Exp $
+ * $Id: rtscan.h,v 1.13 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
void rtadjscans(Relation r, int op, BlockNumber blkno, OffsetNumber offnum);
-#endif /* RTSCAN_H */
+#endif /* RTSCAN_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: sdir.h,v 1.11 2001/10/28 06:25:59 momjian Exp $
+ * $Id: sdir.h,v 1.12 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define ScanDirectionIsForward(direction) \
((bool) ((direction) == ForwardScanDirection))
-#endif /* SDIR_H */
+#endif /* SDIR_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: skey.h,v 1.19 2001/10/28 06:25:59 momjian Exp $
+ * $Id: skey.h,v 1.20 2001/11/05 17:46:31 momjian Exp $
*
* Note:
* Needs more accessor/assignment routines.
AttrNumber attributeNumber, FmgrInfo *finfo,
MemoryContext mcxt, Datum argument);
-#endif /* SKEY_H */
+#endif /* SKEY_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: strat.h,v 1.24 2001/10/28 06:25:59 momjian Exp $
+ * $Id: strat.h,v 1.25 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
typedef IndexStrategyData *IndexStrategy;
-#endif /* STRAT_H */
+#endif /* STRAT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: transam.h,v 1.43 2001/10/28 06:25:59 momjian Exp $
+ * $Id: transam.h,v 1.44 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/* in varsup.c */
extern VariableCache ShmemVariableCache;
-#endif /* TRAMSAM_H */
+#endif /* TRAMSAM_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: tupdesc.h,v 1.32 2001/10/28 06:25:59 momjian Exp $
+ * $Id: tupdesc.h,v 1.33 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Form_pg_attribute *attrs;
/* attrs[N] is a pointer to the description of Attribute Number N+1. */
TupleConstr *constr;
-} *TupleDesc;
+} *TupleDesc;
extern TupleDesc CreateTemplateTupleDesc(int natts);
extern TupleDesc BuildDescForRelation(List *schema, char *relname);
-#endif /* TUPDESC_H */
+#endif /* TUPDESC_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: tupmacs.h,v 1.19 2001/10/28 06:25:59 momjian Exp $
+ * $Id: tupmacs.h,v 1.20 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
: \
PointerGetDatum((char *) (T)) \
)
-#endif /* SIZEOF_DATUM == 8 */
+#endif /* SIZEOF_DATUM == 8 */
/*
* att_align aligns the given offset as needed for a datum of length attlen
break; \
} \
} while (0)
-#endif /* SIZEOF_DATUM == 8 */
+#endif /* SIZEOF_DATUM == 8 */
#endif
*
* Copyright (c) 2000, PostgreSQL Development Team
*
- * $Id: tuptoaster.h,v 1.12 2001/10/25 05:49:55 momjian Exp $
+ * $Id: tuptoaster.h,v 1.13 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
extern Size toast_raw_datum_size(Datum value);
-#endif /* TUPTOASTER_H */
+#endif /* TUPTOASTER_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: valid.h,v 1.25 2001/10/28 06:25:59 momjian Exp $
+ * $Id: valid.h,v 1.26 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
} \
} while (0)
-#endif /* VALID_H */
+#endif /* VALID_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: xact.h,v 1.40 2001/10/28 06:25:59 momjian Exp $
+ * $Id: xact.h,v 1.41 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Datum xideq(PG_FUNCTION_ARGS);
extern Datum xid_age(PG_FUNCTION_ARGS);
-#endif /* XACT_H */
+#endif /* XACT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: xlog.h,v 1.27 2001/10/28 06:25:59 momjian Exp $
+ * $Id: xlog.h,v 1.28 2001/11/05 17:46:31 momjian Exp $
*/
#ifndef XLOG_H
#define XLOG_H
extern bool check_xlog_sync_method(const char *method);
extern void assign_xlog_sync_method(const char *method);
-#endif /* XLOG_H */
+#endif /* XLOG_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: xlogdefs.h,v 1.6 2001/10/28 06:25:59 momjian Exp $
+ * $Id: xlogdefs.h,v 1.7 2001/11/05 17:46:31 momjian Exp $
*/
#ifndef XLOG_DEFS_H
#define XLOG_DEFS_H
*/
typedef uint32 StartUpID;
-#endif /* XLOG_DEFS_H */
+#endif /* XLOG_DEFS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: bootstrap.h,v 1.25 2001/10/28 06:25:59 momjian Exp $
+ * $Id: bootstrap.h,v 1.26 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define BS_XLOG_CHECKPOINT 3
#define BS_XLOG_SHUTDOWN 4
-#endif /* BOOTSTRAP_H */
+#endif /* BOOTSTRAP_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: c.h,v 1.107 2001/10/28 06:25:59 momjian Exp $
+ * $Id: c.h,v 1.108 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
#define _priv_CppIdentity(x)x
#define CppConcat(x, y) _priv_CppIdentity(x)y
-#endif /* !HAVE_STRINGIZE */
+#endif /* !HAVE_STRINGIZE */
/*
* dummyret is used to set return values in macros that use ?: to make
#ifndef false
#define false ((bool) 0)
#endif
-#endif /* not C++ */
-#endif /* __BEOS__ */
+#endif /* not C++ */
+#endif /* __BEOS__ */
typedef bool *BoolPtr;
typedef signed char int8; /* == 8 bits */
typedef signed short int16; /* == 16 bits */
typedef signed int int32; /* == 32 bits */
-#endif /* __BEOS__ */
+#endif /* __BEOS__ */
/*
* uintN
typedef unsigned char uint8; /* == 8 bits */
typedef unsigned short uint16; /* == 16 bits */
typedef unsigned int uint32; /* == 32 bits */
-#endif /* __BEOS__ */
+#endif /* __BEOS__ */
/*
* boolN
#define INT64_IS_BUSTED
#endif
#endif
-#endif /* __BEOS__ */
+#endif /* __BEOS__ */
/*
* Size
*/
#ifndef offsetof
#define offsetof(type, field) ((long) &((type *)0)->field)
-#endif /* offsetof */
+#endif /* offsetof */
/*
* lengthof
* ----------------
*/
-#endif /* C_H */
+#endif /* C_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: catalog.h,v 1.19 2001/10/28 06:25:59 momjian Exp $
+ * $Id: catalog.h,v 1.20 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Oid newoid(void);
-#endif /* CATALOG_H */
+#endif /* CATALOG_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: catname.h,v 1.22 2001/10/28 06:25:59 momjian Exp $
+ * $Id: catname.h,v 1.23 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern char *SharedSystemRelationNames[];
-#endif /* CATNAME_H */
+#endif /* CATNAME_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: heap.h,v 1.40 2001/10/28 06:25:59 momjian Exp $
+ * $Id: heap.h,v 1.41 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Form_pg_attribute SystemAttributeByName(const char *attname,
bool relhasoids);
-#endif /* HEAP_H */
+#endif /* HEAP_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: index.h,v 1.42 2001/10/28 06:25:59 momjian Exp $
+ * $Id: index.h,v 1.43 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern bool activate_indexes_of_a_table(Oid relid, bool activate);
extern bool reindex_relation(Oid relid, bool force);
-#endif /* INDEX_H */
+#endif /* INDEX_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: indexing.h,v 1.55 2001/10/28 06:25:59 momjian Exp $
+ * $Id: indexing.h,v 1.56 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/* last step of initialization script: build the indices declared above */
BUILD_INDICES
-#endif /* INDEXING_H */
+#endif /* INDEXING_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_aggregate.h,v 1.34 2001/10/28 06:25:59 momjian Exp $
+ * $Id: pg_aggregate.h,v 1.35 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
extern Datum AggNameGetInitVal(char *aggName, Oid basetype,
bool *isNull);
-#endif /* PG_AGGREGATE_H */
+#endif /* PG_AGGREGATE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_am.h,v 1.20 2001/10/28 06:25:59 momjian Exp $
+ * $Id: pg_am.h,v 1.21 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
DATA(insert OID = 783 ( gist PGUID 100 7 0 f t f f gistgettuple gistinsert gistbeginscan gistrescan gistendscan gistmarkpos gistrestrpos gistbuild gistbulkdelete gistcostestimate ));
DESCR("GiST index access method");
-#endif /* PG_AM_H */
+#endif /* PG_AM_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_amop.h,v 1.44 2001/10/28 06:25:59 momjian Exp $
+ * $Id: pg_amop.h,v 1.45 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
/* timestamp_ops */
DATA(insert ( 2040 1 f 2060 ));
-#endif /* PG_AMOP_H */
+#endif /* PG_AMOP_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_amproc.h,v 1.33 2001/10/28 06:26:00 momjian Exp $
+ * $Id: pg_amproc.h,v 1.34 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
DATA(insert ( 2004 1 456 ));
DATA(insert ( 2040 1 452 ));
-#endif /* PG_AMPROC_H */
+#endif /* PG_AMPROC_H */
#define Anum_pg_attrdef_adbin 3
#define Anum_pg_attrdef_adsrc 4
-#endif /* PG_ATTRDEF_H */
+#endif /* PG_ATTRDEF_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_attribute.h,v 1.78 2001/10/28 06:26:00 momjian Exp $
+ * $Id: pg_attribute.h,v 1.79 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
(attribute)->atttypid = (Oid) -1; \
(attribute)->attnotnull = false; \
(attribute)->atthasdef = false;
-#endif /* _DROP_COLUMN_HACK__ */
+#endif /* _DROP_COLUMN_HACK__ */
/* ----------------
* SCHEMA_ macros for declaring hardcoded tuple descriptors.
*/
DATA(insert ( 376 xactlockfoo 26 0 4 1 0 -1 -1 t p f i f f));
-#endif /* PG_ATTRIBUTE_H */
+#endif /* PG_ATTRIBUTE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_class.h,v 1.56 2001/10/28 06:26:00 momjian Exp $
+ * $Id: pg_class.h,v 1.57 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
#define RELKIND_TOASTVALUE 't' /* moved off huge values */
#define RELKIND_VIEW 'v' /* view */
-#endif /* PG_CLASS_H */
+#endif /* PG_CLASS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_control.h,v 1.5 2001/10/28 06:26:00 momjian Exp $
+ * $Id: pg_control.h,v 1.6 2001/11/05 17:46:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/
char lc_ctype[LOCALE_NAME_BUFLEN];
} ControlFileData;
-#endif /* PG_CONTROL_H */
+#endif /* PG_CONTROL_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_database.h,v 1.20 2001/10/28 06:26:00 momjian Exp $
+ * $Id: pg_database.h,v 1.21 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
#undef DATAMARKOID
-#endif /* PG_DATABASE_H */
+#endif /* PG_DATABASE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_description.h,v 1.15 2001/10/28 06:26:00 momjian Exp $
+ * $Id: pg_description.h,v 1.16 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
* by genbki.sh and loaded during initdb.
*/
-#endif /* PG_DESCRIPTION_H */
+#endif /* PG_DESCRIPTION_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_group.h,v 1.12 2001/10/28 06:26:00 momjian Exp $
+ * $Id: pg_group.h,v 1.13 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
#define Anum_pg_group_grosysid 2
#define Anum_pg_group_grolist 3
-#endif /* PG_GROUP_H */
+#endif /* PG_GROUP_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_index.h,v 1.26 2001/10/28 06:26:00 momjian Exp $
+ * $Id: pg_index.h,v 1.27 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
#define Anum_pg_index_indreference 9
#define Anum_pg_index_indpred 10
-#endif /* PG_INDEX_H */
+#endif /* PG_INDEX_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_inherits.h,v 1.12 2001/10/25 05:49:57 momjian Exp $
+ * $Id: pg_inherits.h,v 1.13 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
#define Anum_pg_inherits_inhparent 2
#define Anum_pg_inherits_inhseqno 3
-#endif /* PG_INHERITS_H */
+#endif /* PG_INHERITS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_language.h,v 1.14 2001/10/25 05:49:57 momjian Exp $
+ * $Id: pg_language.h,v 1.15 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
DESCR("SQL-language functions");
#define SQLlanguageId 14
-#endif /* PG_LANGUAGE_H */
+#endif /* PG_LANGUAGE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_largeobject.h,v 1.11 2001/10/28 06:26:00 momjian Exp $
+ * $Id: pg_largeobject.h,v 1.12 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
extern void LargeObjectDrop(Oid loid);
extern bool LargeObjectExists(Oid loid);
-#endif /* PG_LARGEOBJECT_H */
+#endif /* PG_LARGEOBJECT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_listener.h,v 1.11 2001/10/25 05:49:57 momjian Exp $
+ * $Id: pg_listener.h,v 1.12 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
* ----------------
*/
-#endif /* PG_LISTENER_H */
+#endif /* PG_LISTENER_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_opclass.h,v 1.42 2001/10/28 06:26:00 momjian Exp $
+ * $Id: pg_opclass.h,v 1.43 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
DATA(insert OID = 2039 ( 403 timestamp_ops 1114 t 0 ));
DATA(insert OID = 2040 ( 405 timestamp_ops 1114 t 0 ));
-#endif /* PG_OPCLASS_H */
+#endif /* PG_OPCLASS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_operator.h,v 1.98 2001/10/28 06:26:00 momjian Exp $
+ * $Id: pg_operator.h,v 1.99 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
char *leftSortName,
char *rightSortName);
-#endif /* PG_OPERATOR_H */
+#endif /* PG_OPERATOR_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_proc.h,v 1.220 2001/10/28 06:26:04 momjian Exp $
+ * $Id: pg_proc.h,v 1.221 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* The script catalog/genbki.sh reads this file and generates .bki
int32 outin_ratio,
List *argList);
-#endif /* PG_PROC_H */
+#endif /* PG_PROC_H */
#define Anum_pg_relcheck_rcbin 3
#define Anum_pg_relcheck_rcsrc 4
-#endif /* PG_RELCHECK_H */
+#endif /* PG_RELCHECK_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_rewrite.h,v 1.16 2001/10/28 06:26:06 momjian Exp $
+ * $Id: pg_rewrite.h,v 1.17 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
#define Anum_pg_rewrite_ev_qual 6
#define Anum_pg_rewrite_ev_action 7
-#endif /* PG_REWRITE_H */
+#endif /* PG_REWRITE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_shadow.h,v 1.16 2001/10/28 06:26:06 momjian Exp $
+ * $Id: pg_shadow.h,v 1.17 2001/11/05 17:46:32 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
#define BOOTSTRAP_USESYSID 1
-#endif /* PG_SHADOW_H */
+#endif /* PG_SHADOW_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_statistic.h,v 1.14 2001/10/28 06:26:06 momjian Exp $
+ * $Id: pg_statistic.h,v 1.15 2001/11/05 17:46:33 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
*/
#define STATISTIC_KIND_CORRELATION 3
-#endif /* PG_STATISTIC_H */
+#endif /* PG_STATISTIC_H */
#define TRIGGER_FOR_DELETE(type) (type & TRIGGER_TYPE_DELETE)
#define TRIGGER_FOR_UPDATE(type) (type & TRIGGER_TYPE_UPDATE)
-#endif /* PG_TRIGGER_H */
+#endif /* PG_TRIGGER_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_type.h,v 1.113 2001/10/25 05:49:58 momjian Exp $
+ * $Id: pg_type.h,v 1.114 2001/11/05 17:46:33 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
extern void TypeRename(const char *oldTypeName, const char *newTypeName);
extern char *makeArrayTypeName(char *typeName);
-#endif /* PG_TYPE_H */
+#endif /* PG_TYPE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_version.h,v 1.13 2001/10/25 05:49:58 momjian Exp $
+ * $Id: pg_version.h,v 1.14 2001/11/05 17:46:33 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
#define Anum_pg_version_verbaseid 2
#define Anum_pg_version_vertime 3
-#endif /* PG_VERSION_H */
+#endif /* PG_VERSION_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: async.h,v 1.19 2001/10/28 06:26:06 momjian Exp $
+ * $Id: async.h,v 1.20 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void EnableNotifyInterrupt(void);
extern void DisableNotifyInterrupt(void);
-#endif /* ASYNC_H */
+#endif /* ASYNC_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994-5, Regents of the University of California
*
- * $Id: cluster.h,v 1.11 2001/10/28 06:26:06 momjian Exp $
+ * $Id: cluster.h,v 1.12 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
extern void cluster(char *oldrelname, char *oldindexname);
-#endif /* CLUSTER_H */
+#endif /* CLUSTER_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: command.h,v 1.30 2001/10/28 06:26:06 momjian Exp $
+ * $Id: command.h,v 1.31 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
extern void LockTableCommand(LockStmt *lockstmt);
-#endif /* COMMAND_H */
+#endif /* COMMAND_H */
extern void CreateComments(Oid oid, Oid classoid, int32 subid, char *comment);
-#endif /* COMMENT_H */
+#endif /* COMMENT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: copy.h,v 1.15 2001/10/28 06:26:06 momjian Exp $
+ * $Id: copy.h,v 1.16 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
void DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
char *filename, char *delim, char *null_print);
-#endif /* COPY_H */
+#endif /* COPY_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: creatinh.h,v 1.16 2001/10/28 06:26:06 momjian Exp $
+ * $Id: creatinh.h,v 1.17 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void RemoveRelation(char *name);
extern void TruncateRelation(char *name);
-#endif /* CREATINH_H */
+#endif /* CREATINH_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: dbcommands.h,v 1.18 2001/10/28 06:26:06 momjian Exp $
+ * $Id: dbcommands.h,v 1.19 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
const char *dbtemplate, int encoding);
extern void dropdb(const char *dbname);
-#endif /* DBCOMMANDS_H */
+#endif /* DBCOMMANDS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: defrem.h,v 1.27 2001/10/28 06:26:06 momjian Exp $
+ * $Id: defrem.h,v 1.28 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void RemoveType(char *typeName);
extern void RemoveAggregate(char *aggName, char *aggType);
-#endif /* DEFREM_H */
+#endif /* DEFREM_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994-5, Regents of the University of California
*
- * $Id: explain.h,v 1.14 2001/10/28 06:26:06 momjian Exp $
+ * $Id: explain.h,v 1.15 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExplainQuery(Query *query, bool verbose, bool analyze, CommandDest dest);
-#endif /* EXPLAIN_H */
+#endif /* EXPLAIN_H */
extern void CreateProceduralLanguage(CreatePLangStmt *stmt);
extern void DropProceduralLanguage(DropPLangStmt *stmt);
-#endif /* PROCLANG_H */
+#endif /* PROCLANG_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: rename.h,v 1.12 2001/10/28 06:26:06 momjian Exp $
+ * $Id: rename.h,v 1.13 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void renamerel(const char *oldrelname,
const char *newrelname);
-#endif /* RENAME_H */
+#endif /* RENAME_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: sequence.h,v 1.18 2001/10/28 06:26:06 momjian Exp $
+ * $Id: sequence.h,v 1.19 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void seq_undo(XLogRecPtr lsn, XLogRecord *rptr);
extern void seq_desc(char *buf, uint8 xl_info, char *rec);
-#endif /* SEQUENCE_H */
+#endif /* SEQUENCE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: trigger.h,v 1.29 2001/10/28 06:26:06 momjian Exp $
+ * $Id: trigger.h,v 1.30 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
extern bool RI_FKey_keyequal_upd(TriggerData *trigdata);
-#endif /* TRIGGER_H */
+#endif /* TRIGGER_H */
* user.h
*
*
- * $Id: user.h,v 1.15 2001/10/28 06:26:06 momjian Exp $
+ * $Id: user.h,v 1.16 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Datum update_pg_pwd(PG_FUNCTION_ARGS);
-#endif /* USER_H */
+#endif /* USER_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: vacuum.h,v 1.42 2001/10/28 06:26:06 momjian Exp $
+ * $Id: vacuum.h,v 1.43 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/* in commands/analyze.c */
extern void analyze_rel(Oid relid, VacuumStmt *vacstmt);
-#endif /* VACUUM_H */
+#endif /* VACUUM_H */
* Headers for handling of 'SET var TO', 'SHOW var' and 'RESET var'
* statements
*
- * $Id: variable.h,v 1.16 2001/10/28 06:26:06 momjian Exp $
+ * $Id: variable.h,v 1.17 2001/11/05 17:46:33 momjian Exp $
*
*/
#ifndef VARIABLE_H
extern void set_default_datestyle(void);
extern void set_default_client_encoding(void);
-#endif /* VARIABLE_H */
+#endif /* VARIABLE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: version.h,v 1.11 2001/10/28 06:26:06 momjian Exp $
+ * $Id: version.h,v 1.12 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef VERSION_H
#define VERSION_H
-#endif /* VERSION_H */
+#endif /* VERSION_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: view.h,v 1.12 2001/10/28 06:26:06 momjian Exp $
+ * $Id: view.h,v 1.13 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void DefineView(char *view_name, Query *view_parse);
extern void RemoveView(char *view_name);
-#endif /* VIEW_H */
+#endif /* VIEW_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: execFlatten.h,v 1.15 2001/10/25 05:49:59 momjian Exp $
+ * $Id: execFlatten.h,v 1.16 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecEvalFjoin(TargetEntry *tlist, ExprContext *econtext,
bool *isNullVect, ExprDoneCond *fj_isDone);
-#endif /* EXECFLATTEN_H */
+#endif /* EXECFLATTEN_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: execdebug.h,v 1.18 2001/10/28 06:26:06 momjian Exp $
+ * $Id: execdebug.h,v 1.19 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define IncrProcessed() (void)(0)
#define IncrIndexProcessed() (void)(0)
#define IncrIndexInserted() (void)(0)
-#endif /* EXEC_TUPLECOUNT */
+#endif /* EXEC_TUPLECOUNT */
/* ----------------
* memory context debugging defines
#else
#define CXT_printf(s)
#define CXT1_printf(s, a)
-#endif /* EXEC_CONTEXTDEBUG */
+#endif /* EXEC_CONTEXTDEBUG */
/* ----------------
* eutils debugging defines
#define EU2_printf(s, a, b)
#define EU3_printf(s, a, b, c)
#define EU4_printf(s, a, b, c, d)
-#endif /* EXEC_UTILSDEBUG */
+#endif /* EXEC_UTILSDEBUG */
/* ----------------
#define NL1_printf(s, a)
#define NL4_printf(s, a, b, c, d)
#define ENL1_printf(message)
-#endif /* EXEC_NESTLOOPDEBUG */
+#endif /* EXEC_NESTLOOPDEBUG */
/* ----------------
* proc node debugging defines
#else
#define PN_printf(s)
#define PN1_printf(s, p)
-#endif /* EXEC_PROCDEBUG */
+#endif /* EXEC_PROCDEBUG */
/* ----------------
* exec eval / target list debugging defines
#define EV_printf(s)
#define EV1_printf(s, a)
#define EV5_printf(s, a, b, c, d, e)
-#endif /* EXEC_EVALDEBUG */
+#endif /* EXEC_EVALDEBUG */
/* ----------------
* scan debugging defines
#define S_nodeDisplay(l)
#define S_printf(s)
#define S1_printf(s, p)
-#endif /* EXEC_SCANDEBUG */
+#endif /* EXEC_SCANDEBUG */
/* ----------------
* sort node debugging defines
#define SO_nodeDisplay(l)
#define SO_printf(s)
#define SO1_printf(s, p)
-#endif /* EXEC_SORTDEBUG */
+#endif /* EXEC_SORTDEBUG */
/* ----------------
* merge join debugging defines
#define MJ_DEBUG_QUAL(clause, res)
#define MJ_DEBUG_MERGE_COMPARE(qual, res)
#define MJ_DEBUG_PROC_NODE(slot)
-#endif /* EXEC_MERGEJOINDEBUG */
+#endif /* EXEC_MERGEJOINDEBUG */
/* ----------------------------------------------------------------
* DO NOT DEFINE THESE EVER OR YOU WILL BURN!
extern long NDirectFileRead;
extern long NDirectFileWrite;
-#endif /* ExecDebugIncluded */
+#endif /* ExecDebugIncluded */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: execdefs.h,v 1.10 2001/10/28 06:26:06 momjian Exp $
+ * $Id: execdefs.h,v 1.11 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define EXEC_MJ_ENDOUTER 14
#define EXEC_MJ_ENDINNER 15
-#endif /* EXECDEFS_H */
+#endif /* EXECDEFS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: execdesc.h,v 1.16 2001/10/28 06:26:06 momjian Exp $
+ * $Id: execdesc.h,v 1.17 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern QueryDesc *CreateQueryDesc(Query *parsetree, Plan *plantree,
CommandDest dest);
-#endif /* EXECDESC_H */
+#endif /* EXECDESC_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: executor.h,v 1.60 2001/10/28 06:26:06 momjian Exp $
+ * $Id: executor.h,v 1.61 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecInsertIndexTuples(TupleTableSlot *slot, ItemPointer tupleid,
EState *estate, bool is_update);
-#endif /* EXECUTOR_H */
+#endif /* EXECUTOR_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: functions.h,v 1.17 2001/10/28 06:26:06 momjian Exp $
+ * $Id: functions.h,v 1.18 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Datum fmgr_sql(PG_FUNCTION_ARGS);
-#endif /* FUNCTIONS_H */
+#endif /* FUNCTIONS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: hashjoin.h,v 1.24 2001/10/28 06:26:06 momjian Exp $
+ * $Id: hashjoin.h,v 1.25 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
typedef HashTableData *HashJoinTable;
-#endif /* HASHJOIN_H */
+#endif /* HASHJOIN_H */
*
* Copyright (c) 2001, PostgreSQL Global Development Group
*
- * $Id: instrument.h,v 1.3 2001/10/28 06:26:06 momjian Exp $
+ * $Id: instrument.h,v 1.4 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void InstrStopNode(Instrumentation *instr, bool returnedTuple);
extern void InstrEndLoop(Instrumentation *instr);
-#endif /* INSTRUMENT_H */
+#endif /* INSTRUMENT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeAgg.h,v 1.14 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeAgg.h,v 1.15 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecEndAgg(Agg *node);
extern void ExecReScanAgg(Agg *node, ExprContext *exprCtxt, Plan *parent);
-#endif /* NODEAGG_H */
+#endif /* NODEAGG_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeAppend.h,v 1.15 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeAppend.h,v 1.16 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecEndAppend(Append *node);
extern void ExecReScanAppend(Append *node, ExprContext *exprCtxt, Plan *parent);
-#endif /* NODEAPPEND_H */
+#endif /* NODEAPPEND_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeGroup.h,v 1.20 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeGroup.h,v 1.21 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
int numCols,
AttrNumber *matchColIdx);
-#endif /* NODEGROUP_H */
+#endif /* NODEGROUP_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeHash.h,v 1.22 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeHash.h,v 1.23 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
int *physicalbuckets,
int *numbatches);
-#endif /* NODEHASH_H */
+#endif /* NODEHASH_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeHashjoin.h,v 1.21 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeHashjoin.h,v 1.22 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecHashJoinSaveTuple(HeapTuple heapTuple, BufFile *file);
extern void ExecReScanHashJoin(HashJoin *node, ExprContext *exprCtxt, Plan *parent);
-#endif /* NODEHASHJOIN_H */
+#endif /* NODEHASHJOIN_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeIndexscan.h,v 1.13 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeIndexscan.h,v 1.14 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern int ExecCountSlotsIndexScan(IndexScan *node);
extern void ExecIndexReScan(IndexScan *node, ExprContext *exprCtxt, Plan *parent);
-#endif /* NODEINDEXSCAN_H */
+#endif /* NODEINDEXSCAN_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeLimit.h,v 1.4 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeLimit.h,v 1.5 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecEndLimit(Limit *node);
extern void ExecReScanLimit(Limit *node, ExprContext *exprCtxt, Plan *parent);
-#endif /* NODELIMIT_H */
+#endif /* NODELIMIT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeMaterial.h,v 1.16 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeMaterial.h,v 1.17 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecMaterialRestrPos(Material *node);
extern void ExecMaterialReScan(Material *node, ExprContext *exprCtxt, Plan *parent);
-#endif /* NODEMATERIAL_H */
+#endif /* NODEMATERIAL_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeMergejoin.h,v 1.15 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeMergejoin.h,v 1.16 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecEndMergeJoin(MergeJoin *node);
extern void ExecReScanMergeJoin(MergeJoin *node, ExprContext *exprCtxt, Plan *parent);
-#endif /* NODEMERGEJOIN_H; */
+#endif /* NODEMERGEJOIN_H; */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeNestloop.h,v 1.16 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeNestloop.h,v 1.17 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecReScanNestLoop(NestLoop *node, ExprContext *exprCtxt,
Plan *parent);
-#endif /* NODENESTLOOP_H */
+#endif /* NODENESTLOOP_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeResult.h,v 1.13 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeResult.h,v 1.14 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecEndResult(Result *node);
extern void ExecReScanResult(Result *node, ExprContext *exprCtxt, Plan *parent);
-#endif /* NODERESULT_H */
+#endif /* NODERESULT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeSeqscan.h,v 1.13 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeSeqscan.h,v 1.14 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecSeqMarkPos(SeqScan *node);
extern void ExecSeqRestrPos(SeqScan *node);
-#endif /* NODESEQSCAN_H */
+#endif /* NODESEQSCAN_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeSetOp.h,v 1.4 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeSetOp.h,v 1.5 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecEndSetOp(SetOp *node);
extern void ExecReScanSetOp(SetOp *node, ExprContext *exprCtxt, Plan *parent);
-#endif /* NODESETOP_H */
+#endif /* NODESETOP_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeSort.h,v 1.13 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeSort.h,v 1.14 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecSortRestrPos(Sort *node);
extern void ExecReScanSort(Sort *node, ExprContext *exprCtxt, Plan *parent);
-#endif /* NODESORT_H */
+#endif /* NODESORT_H */
extern void ExecSetParamPlan(SubPlan *node, ExprContext *econtext);
extern void ExecEndSubPlan(SubPlan *node);
-#endif /* NODESUBPLAN_H */
+#endif /* NODESUBPLAN_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeSubqueryscan.h,v 1.4 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeSubqueryscan.h,v 1.5 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern int ExecCountSlotsSubqueryScan(SubqueryScan *node);
extern void ExecSubqueryReScan(SubqueryScan *node, ExprContext *exprCtxt, Plan *parent);
-#endif /* NODESUBQUERYSCAN_H */
+#endif /* NODESUBQUERYSCAN_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeTidscan.h,v 1.7 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeTidscan.h,v 1.8 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern int ExecCountSlotsTidScan(TidScan *node);
extern void ExecTidReScan(TidScan *node, ExprContext *exprCtxt, Plan *parent);
-#endif /* NODETIDSCAN_H */
+#endif /* NODETIDSCAN_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeUnique.h,v 1.13 2001/10/28 06:26:06 momjian Exp $
+ * $Id: nodeUnique.h,v 1.14 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExecEndUnique(Unique *node);
extern void ExecReScanUnique(Unique *node, ExprContext *exprCtxt, Plan *parent);
-#endif /* NODEUNIQUE_H */
+#endif /* NODEUNIQUE_H */
*
* spi.h
*
- * $Id: spi.h,v 1.30 2001/10/28 06:26:06 momjian Exp $
+ * $Id: spi.h,v 1.31 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void AtEOXact_SPI(void);
-#endif /* SPI_H */
+#endif /* SPI_H */
* spi.c
* Server Programming Interface private declarations
*
- * $Header: /cvsroot/pgsql/src/include/executor/spi_priv.h,v 1.10 2001/10/28 06:26:06 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/include/executor/spi_priv.h,v 1.11 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define _SPI_CPLAN_PROCXT 1
#define _SPI_CPLAN_TOPCXT 2
-#endif /* SPI_PRIV_H */
+#endif /* SPI_PRIV_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: tuptable.h,v 1.20 2001/10/28 06:26:06 momjian Exp $
+ * $Id: tuptable.h,v 1.21 2001/11/05 17:46:33 momjian Exp $
*
* NOTES
* The tuple table interface is getting pretty ugly.
typedef TupleTableData *TupleTable;
-#endif /* TUPTABLE_H */
+#endif /* TUPTABLE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: fmgr.h,v 1.17 2001/10/28 06:25:59 momjian Exp $
+ * $Id: fmgr.h,v 1.18 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
extern char *fmgr(Oid procedureId,...);
-#endif /* FMGR_H */
+#endif /* FMGR_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: dllist.h,v 1.18 2001/10/28 06:26:07 momjian Exp $
+ * $Id: dllist.h,v 1.19 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define DLE_VAL(elem) ((elem)->dle_val)
-#endif /* DLLIST_H */
+#endif /* DLLIST_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: lispsort.h,v 1.9 2001/10/28 06:26:07 momjian Exp $
+ * $Id: lispsort.h,v 1.10 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef LISPSORT_H
#define LISPSORT_H
-#endif /* LISPSORT_H */
+#endif /* LISPSORT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: stringinfo.h,v 1.22 2001/10/28 06:26:07 momjian Exp $
+ * $Id: stringinfo.h,v 1.23 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void appendBinaryStringInfo(StringInfo str,
const char *data, int datalen);
-#endif /* STRINGINFO_H */
+#endif /* STRINGINFO_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: auth.h,v 1.19 2001/10/28 06:26:07 momjian Exp $
+ * $Id: auth.h,v 1.20 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern char *pg_krb_server_keyfile;
-#endif /* AUTH_H */
+#endif /* AUTH_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: be-fsstubs.h,v 1.14 2001/10/28 06:26:07 momjian Exp $
+ * $Id: be-fsstubs.h,v 1.15 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
extern void lo_commit(bool isCommit);
-#endif /* BE_FSSTUBS_H */
+#endif /* BE_FSSTUBS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: crypt.h,v 1.17 2001/11/02 18:39:57 tgl Exp $
- *
+ * $Id: crypt.h,v 1.18 2001/11/05 17:46:33 momjian Exp $
+ *
*-------------------------------------------------------------------------
*/
#ifndef PG_CRYPT_H
extern char *crypt_getpwdfilename(void);
extern void load_password_cache(void);
-extern int md5_crypt_verify(const Port *port, const char *user,
- const char *pgpass);
+extern int md5_crypt_verify(const Port *port, const char *user,
+ const char *pgpass);
extern bool md5_hash(const void *buff, size_t len, char *hexsum);
extern bool CheckMD5Pwd(char *passwd, char *storedpwd, char *seed);
extern bool EncryptMD5(const char *passwd, const char *salt,
* Interface to hba.c
*
*
- * $Id: hba.h,v 1.30 2001/10/28 06:26:07 momjian Exp $
+ * $Id: hba.h,v 1.31 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
uaMD5
#ifdef USE_PAM
,uaPAM
-#endif /* USE_PAM */
+#endif /* USE_PAM */
} UserAuth;
typedef struct Port hbaPort;
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpq-be.h,v 1.24 2001/10/28 06:26:07 momjian Exp $
+ * $Id: libpq-be.h,v 1.25 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
int PacketSendFragment(Port *port);
void PacketSendError(Packet *pkt, char *errormsg);
-#endif /* LIBPQ_BE_H */
+#endif /* LIBPQ_BE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpq-fs.h,v 1.14 2001/10/28 06:26:07 momjian Exp $
+ * $Id: libpq-fs.h,v 1.15 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define INV_WRITE 0x00020000
#define INV_READ 0x00040000
-#endif /* LIBPQ_FS_H */
+#endif /* LIBPQ_FS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpq.h,v 1.47 2001/10/28 06:26:07 momjian Exp $
+ * $Id: libpq.h,v 1.48 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void PQtrace(void);
extern void PQuntrace(void);
-#endif /* LIBPQ_H */
+#endif /* LIBPQ_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqcomm.h,v 1.60 2001/10/25 05:49:59 momjian Exp $
+ * $Id: pqcomm.h,v 1.61 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include
#endif
#include
-#endif /* not WIN32 */
+#endif /* not WIN32 */
#ifndef HAVE_STRUCT_SOCKADDR_UN
*/
#define NEGOTIATE_SSL_CODE PG_PROTOCOL(1234,5679)
-#endif /* PQCOMM_H */
+#endif /* PQCOMM_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqformat.h,v 1.10 2001/10/28 06:26:07 momjian Exp $
+ * $Id: pqformat.h,v 1.11 2001/11/05 17:46:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern int pq_getint(int *result, int b);
extern int pq_getstr(StringInfo s);
-#endif /* PQFORMAT_H */
+#endif /* PQFORMAT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqsignal.h,v 1.18 2001/10/28 06:26:07 momjian Exp $
+ * $Id: pqsignal.h,v 1.19 2001/11/05 17:46:33 momjian Exp $
*
* NOTES
* This shouldn't be in libpq, but the monitor and some other
extern pqsigfunc pqsignal(int signo, pqsigfunc func);
-#endif /* PQSIGNAL_H */
+#endif /* PQSIGNAL_H */
-/* $Id: pg_wchar.h,v 1.36 2001/10/28 06:26:07 momjian Exp $ */
+/* $Id: pg_wchar.h,v 1.37 2001/11/05 17:46:33 momjian Exp $ */
#ifndef PG_WCHAR_H
#define PG_WCHAR_H
extern pg_enconv pg_enconv_tbl[];
extern pg_enconv *pg_get_enconv_by_encoding(int encoding);
-#endif /* FRONTEND */
+#endif /* FRONTEND */
/*
* pg_wchar stuff
extern unsigned short CNStoBIG5(unsigned short, unsigned char);
char *pg_verifymbstr(const unsigned char *, int);
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
-#endif /* PG_WCHAR_H */
+#endif /* PG_WCHAR_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: miscadmin.h,v 1.96 2001/10/28 06:25:59 momjian Exp $
+ * $Id: miscadmin.h,v 1.97 2001/11/05 17:46:31 momjian Exp $
*
* NOTES
* some of the information in this file should be moved to
extern bool IsIgnoringSystemIndexes(void);
extern bool IsCacheInitialized(void);
-#endif /* MISCADMIN_H */
+#endif /* MISCADMIN_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: execnodes.h,v 1.65 2001/10/28 06:26:07 momjian Exp $
+ * $Id: execnodes.h,v 1.66 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
MemoryContext tee_mcxt;
HeapScanDesc tee_leftScanDesc,
tee_rightScanDesc;
-} TeeState;
+} TeeState;
#endif
-#endif /* EXECNODES_H */
+#endif /* EXECNODES_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: makefuncs.h,v 1.29 2001/10/28 06:26:07 momjian Exp $
+ * $Id: makefuncs.h,v 1.30 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Attr *makeAttr(char *relname, char *attname);
-#endif /* MAKEFUNC_H */
+#endif /* MAKEFUNC_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: memnodes.h,v 1.22 2001/10/25 05:50:04 momjian Exp $
+ * $Id: memnodes.h,v 1.23 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
((context) != NULL && \
(IsA((context), AllocSetContext)))
-#endif /* MEMNODES_H */
+#endif /* MEMNODES_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodeFuncs.h,v 1.15 2001/10/28 06:26:07 momjian Exp $
+ * $Id: nodeFuncs.h,v 1.16 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern bool var_is_rel(Var *var);
extern Oper *replace_opid(Oper *oper);
-#endif /* NODEFUNCS_H */
+#endif /* NODEFUNCS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nodes.h,v 1.95 2001/10/28 06:26:07 momjian Exp $
+ * $Id: nodes.h,v 1.96 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
(jointype) == JOIN_FULL || \
(jointype) == JOIN_RIGHT)
-#endif /* NODES_H */
+#endif /* NODES_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: params.h,v 1.15 2001/10/28 06:26:07 momjian Exp $
+ * $Id: params.h,v 1.16 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
bool isnull;
} ParamExecData;
-#endif /* PARAMS_H */
+#endif /* PARAMS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsenodes.h,v 1.150 2001/11/05 05:00:14 tgl Exp $
+ * $Id: parsenodes.h,v 1.151 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
typedef SortClause GroupClause;
-#endif /* PARSENODES_H */
+#endif /* PARSENODES_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_list.h,v 1.25 2001/10/28 06:26:07 momjian Exp $
+ * $Id: pg_list.h,v 1.26 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/* in copyfuncs.c */
extern List *listCopy(List *list);
-#endif /* PG_LIST_H */
+#endif /* PG_LIST_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: plannodes.h,v 1.52 2001/10/28 06:26:07 momjian Exp $
+ * $Id: plannodes.h,v 1.53 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
List *rtentries; /* the range table for the plan below the
* Tee may be different than the parent
* plans */
-} Tee;
+} Tee;
#endif
/* ---------------------
HeapTuple curTuple; /* copy of most recent tuple from subplan */
} SubPlan;
-#endif /* PLANNODES_H */
+#endif /* PLANNODES_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: primnodes.h,v 1.56 2001/10/28 06:26:07 momjian Exp $
+ * $Id: primnodes.h,v 1.57 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Node *quals; /* qualifiers on join, if any */
} FromExpr;
-#endif /* PRIMNODES_H */
+#endif /* PRIMNODES_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: print.h,v 1.15 2001/10/28 06:26:07 momjian Exp $
+ * $Id: print.h,v 1.16 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
int indentLevel, char *label);
extern void print_plan(Plan *p, Query *parsetree);
-#endif /* PRINT_H */
+#endif /* PRINT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: readfuncs.h,v 1.13 2001/10/28 06:26:07 momjian Exp $
+ * $Id: readfuncs.h,v 1.14 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
extern Node *parsePlanString(void);
-#endif /* READFUNCS_H */
+#endif /* READFUNCS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: relation.h,v 1.60 2001/10/28 06:26:07 momjian Exp $
+ * $Id: relation.h,v 1.61 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Selectivity groupsel;
} Stream;
-#endif /* RELATION_H */
+#endif /* RELATION_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: xfunc.h,v 1.7 2001/10/28 06:26:08 momjian Exp $
+ * $Id: xfunc.h,v 1.8 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
extern bool xfunc_do_predmig(Path root);
-#endif /* XFUNC_H */
+#endif /* XFUNC_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: clauses.h,v 1.48 2001/10/30 19:58:58 tgl Exp $
+ * $Id: clauses.h,v 1.49 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
IsA(clause, Expr) && \
((Expr *) (clause))->opType == SUBPLAN_EXPR)
-#endif /* CLAUSES_H */
+#endif /* CLAUSES_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: cost.h,v 1.42 2001/10/28 06:26:07 momjian Exp $
+ * $Id: cost.h,v 1.43 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Node *clause,
int varRelid);
-#endif /* COST_H */
+#endif /* COST_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo.h,v 1.26 2001/10/28 06:26:07 momjian Exp $
+ * $Id: geqo.h,v 1.27 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Gene *tour, int num_gene,
int rel_count, RelOptInfo *old_rel);
-#endif /* GEQO_H */
+#endif /* GEQO_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_copy.h,v 1.11 2001/10/28 06:26:07 momjian Exp $
+ * $Id: geqo_copy.h,v 1.12 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void geqo_copy(Chromosome *chromo1, Chromosome *chromo2, int string_length);
-#endif /* GEQO_COPY_H */
+#endif /* GEQO_COPY_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_gene.h,v 1.12 2001/10/28 06:26:07 momjian Exp $
+ * $Id: geqo_gene.h,v 1.13 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
int string_length;
} Pool;
-#endif /* GEQO_GENE_H */
+#endif /* GEQO_GENE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_misc.h,v 1.17 2001/10/28 06:26:07 momjian Exp $
+ * $Id: geqo_misc.h,v 1.18 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void geqo_print_path(Query *root, Path *path, int indent);
extern void geqo_print_joinclauses(Query *root, List *clauses);
-#endif /* GEQO_MISC_H */
+#endif /* GEQO_MISC_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_mutation.h,v 1.11 2001/10/28 06:26:07 momjian Exp $
+ * $Id: geqo_mutation.h,v 1.12 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void geqo_mutation(Gene *tour, int num_gene);
-#endif /* GEQO_MUTATION_H */
+#endif /* GEQO_MUTATION_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_pool.h,v 1.14 2001/10/28 06:26:07 momjian Exp $
+ * $Id: geqo_pool.h,v 1.15 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void sort_pool(Pool *pool);
-#endif /* GEQO_POOL_H */
+#endif /* GEQO_POOL_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_random.h,v 1.10 2001/10/28 06:26:07 momjian Exp $
+ * $Id: geqo_random.h,v 1.11 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define geqo_randint(upper,lower) \
( (int) floor( geqo_rand()*(((upper)-(lower))+0.999999) ) + (lower) )
-#endif /* GEQO_RANDOM_H */
+#endif /* GEQO_RANDOM_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_recombination.h,v 1.10 2001/10/25 05:50:05 momjian Exp $
+ * $Id: geqo_recombination.h,v 1.11 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/* order crossover [OX2] according to Syswerda */
extern void ox2(Gene *mom, Gene *dad, Gene *offspring, int num_gene, City *city_table);
-#endif /* GEQO_RECOMBINATION_H */
+#endif /* GEQO_RECOMBINATION_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: geqo_selection.h,v 1.11 2001/10/28 06:26:07 momjian Exp $
+ * $Id: geqo_selection.h,v 1.12 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void geqo_selection(Chromosome *momma, Chromosome *daddy, Pool *pool, double bias);
-#endif /* GEQO_SELECTION_H */
+#endif /* GEQO_SELECTION_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: joininfo.h,v 1.19 2001/10/28 06:26:07 momjian Exp $
+ * $Id: joininfo.h,v 1.20 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern JoinInfo *find_joininfo_node(RelOptInfo *this_rel, List *join_relids);
-#endif /* JOININFO_H */
+#endif /* JOININFO_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pathnode.h,v 1.40 2001/10/28 06:26:07 momjian Exp $
+ * $Id: pathnode.h,v 1.41 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
JoinType jointype,
List **restrictlist_ptr);
-#endif /* PATHNODE_H */
+#endif /* PATHNODE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: paths.h,v 1.58 2001/10/28 06:26:07 momjian Exp $
+ * $Id: paths.h,v 1.59 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
RelOptInfo *rel,
List *pathkeys);
-#endif /* PATHS_H */
+#endif /* PATHS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: plancat.h,v 1.25 2001/10/28 06:26:07 momjian Exp $
+ * $Id: plancat.h,v 1.26 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Oid operator,
List *args);
-#endif /* PLANCAT_H */
+#endif /* PLANCAT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: planmain.h,v 1.53 2001/10/28 06:26:07 momjian Exp $
+ * $Id: planmain.h,v 1.54 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void transformKeySetQuery(Query *origNode);
-#endif /* PLANMAIN_H */
+#endif /* PLANMAIN_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: planner.h,v 1.22 2001/10/28 06:26:07 momjian Exp $
+ * $Id: planner.h,v 1.23 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Plan *make_sortplan(Query *parse, List *tlist,
Plan *plannode, List *sortcls);
-#endif /* PLANNER_H */
+#endif /* PLANNER_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: prep.h,v 1.30 2001/10/28 06:26:07 momjian Exp $
+ * $Id: prep.h,v 1.31 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Index old_rt_index, Oid old_relid,
Index new_rt_index, Oid new_relid);
-#endif /* PREP_H */
+#endif /* PREP_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: restrictinfo.h,v 1.13 2001/10/28 06:26:07 momjian Exp $
+ * $Id: restrictinfo.h,v 1.14 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void get_actual_join_clauses(List *restrictinfo_list,
List **joinquals, List **otherquals);
-#endif /* RESTRICTINFO_H */
+#endif /* RESTRICTINFO_H */
extern Node *SS_replace_correlation_vars(Node *expr);
extern Node *SS_process_sublinks(Node *expr);
-#endif /* SUBSELECT_H */
+#endif /* SUBSELECT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: tlist.h,v 1.30 2001/10/28 06:26:07 momjian Exp $
+ * $Id: tlist.h,v 1.31 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Node *get_sortgroupclause_expr(SortClause *sortClause,
List *targetList);
-#endif /* TLIST_H */
+#endif /* TLIST_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: var.h,v 1.16 2001/10/28 06:26:07 momjian Exp $
+ * $Id: var.h,v 1.17 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern bool contain_var_clause(Node *node);
extern List *pull_var_clause(Node *node, bool includeUpperVars);
-#endif /* VAR_H */
+#endif /* VAR_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: analyze.h,v 1.17 2001/10/28 06:26:08 momjian Exp $
+ * $Id: analyze.h,v 1.18 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/* This was exported to allow ADD CONSTRAINT to make use of it */
extern char *makeObjectName(char *name1, char *name2, char *typename);
-#endif /* ANALYZE_H */
+#endif /* ANALYZE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: gramparse.h,v 1.18 2001/10/28 06:26:08 momjian Exp $
+ * $Id: gramparse.h,v 1.19 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern char *xlateSqlType(char *name);
bool exprIsNullConstant(Node *arg);
-#endif /* GRAMPARSE_H */
+#endif /* GRAMPARSE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: keywords.h,v 1.11 2001/10/28 06:26:08 momjian Exp $
+ * $Id: keywords.h,v 1.12 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern ScanKeyword *ScanKeywordLookup(char *text);
-#endif /* KEYWORDS_H */
+#endif /* KEYWORDS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_agg.h,v 1.19 2001/10/28 06:26:08 momjian Exp $
+ * $Id: parse_agg.h,v 1.20 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
int precedence);
extern void agg_error(char *caller, char *aggname, Oid basetypeID);
-#endif /* PARSE_AGG_H */
+#endif /* PARSE_AGG_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_clause.h,v 1.26 2001/10/28 06:26:08 momjian Exp $
+ * $Id: parse_clause.h,v 1.27 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern List *addAllTargetsToSortList(List *sortlist, List *targetlist);
extern Index assignSortGroupRef(TargetEntry *tle, List *tlist);
-#endif /* PARSE_CLAUSE_H */
+#endif /* PARSE_CLAUSE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_coerce.h,v 1.36 2001/10/28 06:26:08 momjian Exp $
+ * $Id: parse_coerce.h,v 1.37 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Oid targetTypeId,
const char *context);
-#endif /* PARSE_COERCE_H */
+#endif /* PARSE_COERCE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_expr.h,v 1.24 2001/10/28 06:26:08 momjian Exp $
+ * $Id: parse_expr.h,v 1.25 2001/11/05 17:46:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void parse_expr_init(void);
extern char *TypeNameToInternalName(TypeName *typename);
-#endif /* PARSE_EXPR_H */
+#endif /* PARSE_EXPR_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_func.h,v 1.34 2001/10/28 06:26:08 momjian Exp $
+ * $Id: parse_func.h,v 1.35 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
{
Oid *args;
struct _CandidateList *next;
-} *CandidateList;
+} *CandidateList;
/* Result codes for func_get_detail */
typedef enum
extern void func_error(char *caller, char *funcname,
int nargs, Oid *argtypes, char *msg);
-#endif /* PARSE_FUNC_H */
+#endif /* PARSE_FUNC_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_node.h,v 1.28 2001/10/28 06:26:08 momjian Exp $
+ * $Id: parse_node.h,v 1.29 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Node *assignFrom);
extern Const *make_const(Value *value);
-#endif /* PARSE_NODE_H */
+#endif /* PARSE_NODE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_oper.h,v 1.17 2001/10/28 06:26:08 momjian Exp $
+ * $Id: parse_oper.h,v 1.18 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Oid oprid(Operator op);
extern Oid oprfuncid(Operator op);
-#endif /* PARSE_OPER_H */
+#endif /* PARSE_OPER_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_relation.h,v 1.27 2001/10/28 06:26:08 momjian Exp $
+ * $Id: parse_relation.h,v 1.28 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Name attnumAttName(Relation rd, int attid);
extern Oid attnumTypeId(Relation rd, int attid);
-#endif /* PARSE_RELATION_H */
+#endif /* PARSE_RELATION_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_target.h,v 1.22 2001/10/28 06:26:08 momjian Exp $
+ * $Id: parse_target.h,v 1.23 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern List *checkInsertTargets(ParseState *pstate, List *cols,
List **attrnos);
-#endif /* PARSE_TARGET_H */
+#endif /* PARSE_TARGET_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_type.h,v 1.19 2001/10/28 06:26:08 momjian Exp $
+ * $Id: parse_type.h,v 1.20 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define ISCOMPLEX(typeid) (typeidTypeRelid(typeid) != InvalidOid)
-#endif /* PARSE_TYPE_H */
+#endif /* PARSE_TYPE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parser.h,v 1.10 2001/10/28 06:26:08 momjian Exp $
+ * $Id: parser.h,v 1.11 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern List *parser(char *str, Oid *typev, int nargs);
-#endif /* PARSER_H */
+#endif /* PARSER_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsetree.h,v 1.15 2001/10/28 06:26:08 momjian Exp $
+ * $Id: parsetree.h,v 1.16 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
extern char *get_rte_attribute_name(RangeTblEntry *rte, AttrNumber attnum);
-#endif /* PARSETREE_H */
+#endif /* PARSETREE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: scansup.h,v 1.10 2001/10/28 06:26:08 momjian Exp $
+ * $Id: scansup.h,v 1.11 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern char *scanstr(char *s);
-#endif /* SCANSUP_H */
+#endif /* SCANSUP_H */
*
* Copyright (c) 2001, PostgreSQL Global Development Group
*
- * $Id: pgstat.h,v 1.9 2001/10/25 05:49:54 momjian Exp $
+ * $Id: pgstat.h,v 1.10 2001/11/05 17:46:31 momjian Exp $
* ----------
*/
#ifndef PGSTAT_H
extern PgStat_StatBeEntry *pgstat_fetch_stat_beentry(int beid);
extern int pgstat_fetch_stat_numbackends(void);
-#endif /* PGSTAT_H */
+#endif /* PGSTAT_H */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/include/port/darwin/Attic/sem.h,v 1.4 2001/10/28 06:26:08 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/include/port/darwin/Attic/sem.h,v 1.5 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
}
#endif
-#endif /* _SYS_SEM_H */
+#endif /* _SYS_SEM_H */
#ifndef NAN
#ifndef __nan_bytes
#define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f }
-#endif /* __nan_bytes */
+#endif /* __nan_bytes */
extern unsigned char __nan[8];
#define NAN (*(const double *) __nan)
-#endif /* NAN */
+#endif /* NAN */
typedef u_short ushort;
-/* $Header: /cvsroot/pgsql/src/include/port/solaris.h,v 1.6 2001/10/28 06:26:08 momjian Exp $ */
+/* $Header: /cvsroot/pgsql/src/include/port/solaris.h,v 1.7 2001/11/05 17:46:35 momjian Exp $ */
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;
/* not GNUC and i386 */
#define NAN (0.0/0.0)
-#endif /* GCC. */
+#endif /* GCC. */
-#endif /* not NAN */
+#endif /* not NAN */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1995, Regents of the University of California
*
- * $Id: postgres.h,v 1.55 2001/10/28 06:25:59 momjian Exp $
+ * $Id: postgres.h,v 1.56 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define AssertState(condition) \
Trap(!(condition), BadState)
-#endif /* USE_ASSERT_CHECKING */
+#endif /* USE_ASSERT_CHECKING */
/*
* LogTrap
#ifdef ASSERT_CHECKING_TEST
extern int assertTest(int val);
#endif
-#endif /* USE_ASSERT_CHECKING */
+#endif /* USE_ASSERT_CHECKING */
/* ----------------------------------------------------------------
* Section 4: genbki macros used by catalog/pg_xxx.h files
typedef int4 aclitem; /* PHONY definition for catalog use only */
-#endif /* POSTGRES_H */
+#endif /* POSTGRES_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1995, Regents of the University of California
*
- * $Id: postgres_fe.h,v 1.4 2001/10/28 06:25:59 momjian Exp $
+ * $Id: postgres_fe.h,v 1.5 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include "c.h"
-#endif /* POSTGRES_FE_H */
+#endif /* POSTGRES_FE_H */
char *name;
char *chars;
char *multis;
-} cclasses[] =
+} cclasses[] =
{
{
},
{
"alpha", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
- ""
+ ""
},
{
"blank", " \t", ""
{
"graph", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\
0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
- ""
+ ""
},
{
"lower", "abcdefghijklmnopqrstuvwxyz",
- ""
+ ""
},
{
"print", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\
0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ ",
- ""
+ ""
},
{
"punct", "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~",
- ""
+ ""
},
{
"space", "\t\n\v\f\r ", ""
},
{
"upper", "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
- ""
+ ""
},
{
"xdigit", "0123456789ABCDEFabcdef",
- ""
+ ""
},
{
NULL, NULL, ""
{
char *name;
char code;
-} cnames[] =
+} cnames[] =
{
{
regmatch_t *pmatch, int eflags);
extern void pg95_regfree(regex_t *preg);
-#endif /* !_REGEX_H_ */
+#endif /* !_REGEX_H_ */
#endif
#endif
-#endif /* _REGEX_UTILS_H */
+#endif /* _REGEX_UTILS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: prs2lock.h,v 1.14 2001/10/28 06:26:08 momjian Exp $
+ * $Id: prs2lock.h,v 1.15 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
RewriteRule **rules;
} RuleLock;
-#endif /* REWRITE_H */
+#endif /* REWRITE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: rewriteDefine.h,v 1.12 2001/10/28 06:26:08 momjian Exp $
+ * $Id: rewriteDefine.h,v 1.13 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void RenameRewriteRule(char *oldname, char *newname);
-#endif /* REWRITEDEFINE_H */
+#endif /* REWRITEDEFINE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: rewriteHandler.h,v 1.17 2001/10/28 06:26:08 momjian Exp $
+ * $Id: rewriteHandler.h,v 1.18 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern List *QueryRewrite(Query *parsetree);
-#endif /* REWRITEHANDLER_H */
+#endif /* REWRITEHANDLER_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: rewriteManip.h,v 1.29 2001/10/28 06:26:08 momjian Exp $
+ * $Id: rewriteManip.h,v 1.30 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Node *ResolveNew(Node *node, int target_varno, int sublevels_up,
List *targetlist, int event, int update_varno);
-#endif /* REWRITEMANIP_H */
+#endif /* REWRITEMANIP_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: rewriteRemove.h,v 1.9 2001/10/28 06:26:08 momjian Exp $
+ * $Id: rewriteRemove.h,v 1.10 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void RemoveRewriteRule(char *ruleName);
extern void RelationRemoveRules(Oid relid);
-#endif /* REWRITEREMOVE_H */
+#endif /* REWRITEREMOVE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: rewriteSupport.h,v 1.19 2001/10/28 06:26:08 momjian Exp $
+ * $Id: rewriteSupport.h,v 1.20 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void SetRelationRuleStatus(Oid relationId, bool relHasRules,
bool relIsBecomingView);
-#endif /* REWRITESUPPORT_H */
+#endif /* REWRITESUPPORT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: rusagestub.h,v 1.8 2001/10/28 06:25:59 momjian Exp $
+ * $Id: rusagestub.h,v 1.9 2001/11/05 17:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern int getrusage(int who, struct rusage * rusage);
-#endif /* RUSAGESTUB_H */
+#endif /* RUSAGESTUB_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: backendid.h,v 1.11 2001/10/28 06:26:08 momjian Exp $
+ * $Id: backendid.h,v 1.12 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern BackendId MyBackendId; /* backend id of this backend */
-#endif /* BACKENDID_H */
+#endif /* BACKENDID_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: block.h,v 1.15 2001/10/28 06:26:08 momjian Exp $
+ * $Id: block.h,v 1.16 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
(BlockNumber) (((blockId)->bi_hi << 16) | ((uint16) (blockId)->bi_lo)) \
)
-#endif /* BLOCK_H */
+#endif /* BLOCK_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: buf.h,v 1.11 2001/10/28 06:26:08 momjian Exp $
+ * $Id: buf.h,v 1.12 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
#undef NO_BUFFERISVALID
-#endif /* BUF_H */
+#endif /* BUF_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: buf_internals.h,v 1.53 2001/10/28 06:26:08 momjian Exp $
+ * $Id: buf_internals.h,v 1.54 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define BMT_ALLOCNOTFND 2
#define BMT_DEALLOC 3
-} bmtrace;
-#endif /* BMTRACE */
+} bmtrace;
+#endif /* BMTRACE */
/*
extern void LocalBufferSync(void);
extern void ResetLocalBufferPool(void);
-#endif /* BUFMGR_INTERNALS_H */
+#endif /* BUFMGR_INTERNALS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: buffile.h,v 1.10 2001/10/28 06:26:08 momjian Exp $
+ * $Id: buffile.h,v 1.11 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void BufFileTell(BufFile *file, int *fileno, long *offset);
extern int BufFileSeekBlock(BufFile *file, long blknum);
-#endif /* BUFFILE_H */
+#endif /* BUFFILE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: bufpage.h,v 1.45 2001/10/28 06:26:08 momjian Exp $
+ * $Id: bufpage.h,v 1.46 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void PageIndexTupleDelete(Page page, OffsetNumber offset);
extern void IndexPageCleanup(Buffer buffer);
-#endif /* BUFPAGE_H */
+#endif /* BUFPAGE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: fd.h,v 1.33 2001/10/28 06:26:08 momjian Exp $
+ * $Id: fd.h,v 1.34 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern int pg_fsync(int fd);
extern int pg_fdatasync(int fd);
-#endif /* FD_H */
+#endif /* FD_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: freespace.h,v 1.5 2001/10/28 06:26:08 momjian Exp $
+ * $Id: freespace.h,v 1.6 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void DumpFreeSpace(void);
#endif
-#endif /* FREESPACE_H */
+#endif /* FREESPACE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: ipc.h,v 1.53 2001/10/28 06:26:08 momjian Exp $
+ * $Id: ipc.h,v 1.54 2001/11/05 17:46:35 momjian Exp $
*
* Some files that would normally need to include only sys/ipc.h must
* instead include this file because on Ultrix, sys/ipc.h is not designed
#include
#ifdef HAVE_SYS_IPC_H
#include
-#endif /* HAVE_SYS_IPC_H */
+#endif /* HAVE_SYS_IPC_H */
#ifndef HAVE_UNION_SEMUN
union semun
extern void CreateSharedMemoryAndSemaphores(bool makePrivate,
int maxBackends);
-#endif /* IPC_H */
+#endif /* IPC_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: item.h,v 1.9 2001/10/28 06:26:09 momjian Exp $
+ * $Id: item.h,v 1.10 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
typedef Pointer Item;
-#endif /* ITEM_H */
+#endif /* ITEM_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: itemid.h,v 1.18 2001/10/28 06:26:09 momjian Exp $
+ * $Id: itemid.h,v 1.19 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
(bool) (((itemId)->lp_flags & LP_USED) != 0) \
)
-#endif /* ITEMID_H */
+#endif /* ITEMID_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: itempos.h,v 1.14 2001/10/28 06:26:09 momjian Exp $
+ * $Id: itempos.h,v 1.15 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
ItemId op_lpp;
char *op_cp; /* XXX */
uint32 op_len;
-} ItemSubpositionData;
+} ItemSubpositionData;
typedef ItemSubpositionData *ItemSubposition;
#define PSKIP(OBJP, LEN)\
do { (OBJP)->op_cp += (LEN); (OBJP)->op_len -= (LEN); } while (0)
-#endif /* ITEMPOS_H */
+#endif /* ITEMPOS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: itemptr.h,v 1.20 2001/10/28 06:26:09 momjian Exp $
+ * $Id: itemptr.h,v 1.21 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern bool ItemPointerEquals(ItemPointer pointer1, ItemPointer pointer2);
-#endif /* ITEMPTR_H */
+#endif /* ITEMPTR_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: large_object.h,v 1.23 2001/10/28 06:26:09 momjian Exp $
+ * $Id: large_object.h,v 1.24 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern int inv_read(LargeObjectDesc *obj_desc, char *buf, int nbytes);
extern int inv_write(LargeObjectDesc *obj_desc, char *buf, int nbytes);
-#endif /* LARGE_OBJECT_H */
+#endif /* LARGE_OBJECT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: lmgr.h,v 1.34 2001/10/28 06:26:09 momjian Exp $
+ * $Id: lmgr.h,v 1.35 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void XactLockTableInsert(TransactionId xid);
extern void XactLockTableWait(TransactionId xid);
-#endif /* LMGR_H */
+#endif /* LMGR_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: lock.h,v 1.58 2001/10/28 06:26:09 momjian Exp $
+ * $Id: lock.h,v 1.59 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern bool Trace_userlocks;
extern int Trace_lock_table;
extern bool Debug_deadlocks;
-#endif /* LOCK_DEBUG */
+#endif /* LOCK_DEBUG */
typedef int LOCKMASK;
extern void DumpAllLocks(void);
#endif
-#endif /* LOCK_H */
+#endif /* LOCK_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: lwlock.h,v 1.3 2001/10/28 06:26:09 momjian Exp $
+ * $Id: lwlock.h,v 1.4 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern int LWLockShmemSize(void);
extern void CreateLWLocks(void);
-#endif /* LWLOCK_H */
+#endif /* LWLOCK_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: off.h,v 1.12 2001/10/28 06:26:09 momjian Exp $
+ * $Id: off.h,v 1.13 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define OffsetNumberPrev(offsetNumber) \
((OffsetNumber) (-1 + (offsetNumber)))
-#endif /* OFF_H */
+#endif /* OFF_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: page.h,v 1.10 2001/10/28 06:26:09 momjian Exp $
+ * $Id: page.h,v 1.11 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
#define PageIsValid(page) PointerIsValid(page)
-#endif /* PAGE_H */
+#endif /* PAGE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pmsignal.h,v 1.1 2001/11/04 19:55:31 tgl Exp $
+ * $Id: pmsignal.h,v 1.2 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
PMSIGNAL_WAKEN_CHILDREN, /* send a NOTIFY signal to all backends */
NUM_PMSIGNALS /* Must be last value of enum! */
-} PMSignalReason;
+} PMSignalReason;
/*
* prototypes for functions in pmsignal.c
extern void SendPostmasterSignal(PMSignalReason reason);
extern bool CheckPostmasterSignal(PMSignalReason reason);
-#endif /* PMSIGNAL_H */
+#endif /* PMSIGNAL_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pos.h,v 1.12 2001/10/28 06:26:09 momjian Exp $
+ * $Id: pos.h,v 1.13 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define PositionIdGetOffsetNumber(positionId) \
((OffsetNumber) *(positionId))
-#endif /* POS_H */
+#endif /* POS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: proc.h,v 1.52 2001/10/28 06:26:09 momjian Exp $
+ * $Id: proc.h,v 1.53 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern bool enable_sigalrm_interrupt(int delayms);
extern bool disable_sigalrm_interrupt(void);
-#endif /* PROC_H */
+#endif /* PROC_H */
((node1).relNode == (node2).relNode && \
(node1).tblNode == (node2).tblNode)
-#endif /* RELFILENODE_H */
+#endif /* RELFILENODE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: shmem.h,v 1.35 2001/10/28 06:26:09 momjian Exp $
+ * $Id: shmem.h,v 1.36 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Size linkOffset);
extern bool SHMQueueEmpty(SHM_QUEUE *queue);
-#endif /* SHMEM_H */
+#endif /* SHMEM_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: sinval.h,v 1.24 2001/10/28 06:26:09 momjian Exp $
+ * $Id: sinval.h,v 1.25 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/* Use "struct PROC", not PROC, to avoid including proc.h here */
extern struct PROC *BackendIdGetProc(BackendId procId);
-#endif /* SINVAL_H */
+#endif /* SINVAL_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: sinvaladt.h,v 1.29 2001/10/28 06:26:09 momjian Exp $
+ * $Id: sinvaladt.h,v 1.30 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
SharedInvalidationMessage *data);
extern void SIDelExpiredDataEntries(SISeg *segP);
-#endif /* SINVALADT_H */
+#endif /* SINVALADT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: smgr.h,v 1.33 2001/10/28 06:26:09 momjian Exp $
+ * $Id: smgr.h,v 1.34 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Datum smgreq(PG_FUNCTION_ARGS);
extern Datum smgrne(PG_FUNCTION_ARGS);
-#endif /* SMGR_H */
+#endif /* SMGR_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: spin.h,v 1.18 2001/10/28 06:26:09 momjian Exp $
+ * $Id: spin.h,v 1.19 2001/11/05 17:46:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void CreateSpinlocks(void);
-#endif /* SPIN_H */
+#endif /* SPIN_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: dest.h,v 1.27 2001/10/28 06:26:09 momjian Exp $
+ * $Id: dest.h,v 1.28 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ReadyForQuery(CommandDest dest);
extern void UpdateCommandInfo(int operation, Oid lastoid, uint32 tuples);
-#endif /* DEST_H */
+#endif /* DEST_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: fastpath.h,v 1.11 2001/10/28 06:26:09 momjian Exp $
+ * $Id: fastpath.h,v 1.12 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern int HandleFunctionRequest(void);
-#endif /* FASTPATH_H */
+#endif /* FASTPATH_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pquery.h,v 1.18 2001/10/28 06:26:09 momjian Exp $
+ * $Id: pquery.h,v 1.19 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Portal PreparePortal(char *portalName);
-#endif /* PQUERY_H */
+#endif /* PQUERY_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: tcopdebug.h,v 1.8 2001/10/28 06:26:09 momjian Exp $
+ * $Id: tcopdebug.h,v 1.9 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
* ----------------------------------------------------------------
*/
-#endif /* TCOPDEBUG_H */
+#endif /* TCOPDEBUG_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: tcopprot.h,v 1.45 2001/10/28 06:26:09 momjian Exp $
+ * $Id: tcopprot.h,v 1.46 2001/11/05 17:46:36 momjian Exp $
*
* OLD COMMENTS
* This file was created so that other c files could get the two
extern void pg_exec_query_string(char *query_string,
CommandDest dest,
MemoryContext parse_context);
-#endif /* BOOTSTRAP_INCLUDE */
+#endif /* BOOTSTRAP_INCLUDE */
extern void die(SIGNAL_ARGS);
extern void quickdie(SIGNAL_ARGS);
extern void ShowUsage(void);
extern FILE *StatFp;
-#endif /* TCOPPROT_H */
+#endif /* TCOPPROT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: utility.h,v 1.12 2001/10/28 06:26:09 momjian Exp $
+ * $Id: utility.h,v 1.13 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ProcessUtility(Node *parsetree, CommandDest dest);
-#endif /* UTILITY_H */
+#endif /* UTILITY_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: acl.h,v 1.38 2001/10/28 06:26:09 momjian Exp $
+ * $Id: acl.h,v 1.39 2001/11/05 17:46:36 momjian Exp $
*
* NOTES
* For backward-compatibility purposes we have to allow there
extern bool pg_aggr_ownercheck(Oid userid, char *aggname,
Oid basetypeID);
-#endif /* ACL_H */
+#endif /* ACL_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: array.h,v 1.30 2001/10/25 05:50:10 momjian Exp $
+ * $Id: array.h,v 1.31 2001/11/05 17:46:36 momjian Exp $
*
* NOTES
* XXX the data array should be MAXALIGN'd -- currently we only INTALIGN
extern void mda_get_offset_values(int n, int *dist, int *prod, int *span);
extern int mda_next_tuple(int n, int *curr, int *span);
-#endif /* ARRAY_H */
+#endif /* ARRAY_H */
/* -----------------------------------------------------------------------
* ascii.h
*
- * $Id: ascii.h,v 1.7 2001/10/28 06:26:09 momjian Exp $
+ * $Id: ascii.h,v 1.8 2001/11/05 17:46:36 momjian Exp $
*
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
*
extern char *pg_to_ascii(unsigned char *src, unsigned char *src_end,
unsigned char *desc, int enc);
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
-#endif /* _ASCII_H_ */
+#endif /* _ASCII_H_ */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: bit.h,v 1.11 2001/10/28 06:26:09 momjian Exp $
+ * $Id: bit.h,v 1.12 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
extern bool BitArrayBitIsSet(BitArray bitArray, BitIndex bitIndex);
-#endif /* BIT_H */
+#endif /* BIT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: builtins.h,v 1.170 2001/10/28 06:26:09 momjian Exp $
+ * $Id: builtins.h,v 1.171 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Datum quote_ident(PG_FUNCTION_ARGS);
extern Datum quote_literal(PG_FUNCTION_ARGS);
-#endif /* BUILTINS_H */
+#endif /* BUILTINS_H */
extern Datum cash_words(PG_FUNCTION_ARGS);
-#endif /* CASH_H */
+#endif /* CASH_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: catcache.h,v 1.36 2001/10/28 06:26:09 momjian Exp $
+ * $Id: catcache.h,v 1.37 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
HeapTuple tuple,
void (*function) (int, Index, ItemPointer, Oid));
-#endif /* CATCACHE_H */
+#endif /* CATCACHE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: date.h,v 1.16 2001/10/28 06:26:09 momjian Exp $
+ * $Id: date.h,v 1.17 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Datum timetz_pl_interval(PG_FUNCTION_ARGS);
extern Datum timetz_mi_interval(PG_FUNCTION_ARGS);
-#endif /* DATE_H */
+#endif /* DATE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: datetime.h,v 1.25 2001/10/28 06:26:09 momjian Exp $
+ * $Id: datetime.h,v 1.26 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
char *token;
#else
char token[TOKMAXLEN];
-#endif /* _AIX */
+#endif /* _AIX */
char type;
char value; /* this may be unsigned, alas */
} datetkn;
extern int j2day(int jd);
-#endif /* DATETIME_H */
+#endif /* DATETIME_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: datum.h,v 1.15 2001/10/28 06:26:09 momjian Exp $
+ * $Id: datum.h,v 1.16 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern bool datumIsEqual(Datum value1, Datum value2,
bool typByVal, int typLen);
-#endif /* DATUM_H */
+#endif /* DATUM_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: dynahash.h,v 1.10 2001/10/28 06:26:09 momjian Exp $
+ * $Id: dynahash.h,v 1.11 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern int my_log2(long num);
-#endif /* DYNAHASH_H */
+#endif /* DYNAHASH_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: dynamic_loader.h,v 1.19 2001/10/28 06:26:09 momjian Exp $
+ * $Id: dynamic_loader.h,v 1.20 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void pg_dlclose(void *handle);
extern char *pg_dlerror(void);
-#endif /* DYNAMIC_LOADER_H */
+#endif /* DYNAMIC_LOADER_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: elog.h,v 1.29 2001/10/28 06:26:09 momjian Exp $
+ * $Id: elog.h,v 1.30 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern int DebugFileOpen(void);
-#endif /* ELOG_H */
+#endif /* ELOG_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: exc.h,v 1.21 2001/10/28 06:26:09 momjian Exp $
+ * $Id: exc.h,v 1.22 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void ExcAbort(const Exception *excP, ExcDetail detail, ExcData data,
ExcMessage message);
-#endif /* EXC_H */
+#endif /* EXC_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: excid.h,v 1.12 2001/10/28 06:26:09 momjian Exp $
+ * $Id: excid.h,v 1.13 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
* style */
extern DLLIMPORT Exception SystemError; /* XXX inconsistent naming style */
-#endif /* EXCID_H */
+#endif /* EXCID_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: fcache.h,v 1.19 2001/10/28 06:26:09 momjian Exp $
+ * $Id: fcache.h,v 1.20 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern FunctionCachePtr init_fcache(Oid foid, int nargs,
MemoryContext fcacheCxt);
-#endif /* FCACHE_H */
+#endif /* FCACHE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: fmgrtab.h,v 1.18 2001/10/28 06:26:09 momjian Exp $
+ * $Id: fmgrtab.h,v 1.19 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern const int fmgr_nbuiltins; /* number of entries in table */
-#endif /* FMGRTAB_H */
+#endif /* FMGRTAB_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: geo_decls.h,v 1.36 2001/10/28 06:26:09 momjian Exp $
+ * $Id: geo_decls.h,v 1.37 2001/11/05 17:46:36 momjian Exp $
*
* NOTE
* These routines do *not* use the float types from adt/.
extern Datum contsel(PG_FUNCTION_ARGS);
extern Datum contjoinsel(PG_FUNCTION_ARGS);
-#endif /* GEO_DECLS_H */
+#endif /* GEO_DECLS_H */
* External declarations pertaining to backend/utils/misc/guc.c and
* backend/utils/misc/guc-file.l
*
- * $Id: guc.h,v 1.12 2001/10/28 06:26:09 momjian Exp $
+ * $Id: guc.h,v 1.13 2001/11/05 17:46:36 momjian Exp $
*/
#ifndef GUC_H
#define GUC_H
extern bool SQL_inheritance;
extern bool Australian_timezones;
-#endif /* GUC_H */
+#endif /* GUC_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: hsearch.h,v 1.24 2001/10/28 06:26:09 momjian Exp $
+ * $Id: hsearch.h,v 1.25 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern long string_hash(void *key, int keysize);
extern long tag_hash(void *key, int keysize);
-#endif /* HSEARCH_H */
+#endif /* HSEARCH_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: inet.h,v 1.11 2001/10/25 05:50:10 momjian Exp $
+ * $Id: inet.h,v 1.12 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define PG_GETARG_MACADDR_P(n) DatumGetMacaddrP(PG_GETARG_DATUM(n))
#define PG_RETURN_MACADDR_P(x) return MacaddrPGetDatum(x)
-#endif /* INET_H */
+#endif /* INET_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: int8.h,v 1.30 2001/10/28 06:26:09 momjian Exp $
+ * $Id: int8.h,v 1.31 2001/11/05 17:46:36 momjian Exp $
*
* NOTES
* These data types are supported on all 64-bit architectures, and may
extern Datum int8_text(PG_FUNCTION_ARGS);
extern Datum text_int8(PG_FUNCTION_ARGS);
-#endif /* INT8_H */
+#endif /* INT8_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: inval.h,v 1.22 2001/10/28 06:26:09 momjian Exp $
+ * $Id: inval.h,v 1.23 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void RelationMark4RollbackHeapTuple(Relation relation, HeapTuple tuple);
-#endif /* INVAL_H */
+#endif /* INVAL_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: logtape.h,v 1.6 2001/10/28 06:26:09 momjian Exp $
+ * $Id: logtape.h,v 1.7 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void LogicalTapeTell(LogicalTapeSet *lts, int tapenum,
long *blocknum, int *offset);
-#endif /* LOGTAPE_H */
+#endif /* LOGTAPE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: lsyscache.h,v 1.38 2001/10/28 06:26:09 momjian Exp $
+ * $Id: lsyscache.h,v 1.39 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define TypeIsToastable(typid) (get_typstorage(typid) != 'p')
-#endif /* LSYSCACHE_H */
+#endif /* LSYSCACHE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: memutils.h,v 1.44 2001/10/25 05:50:10 momjian Exp $
+ * $Id: memutils.h,v 1.45 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define ALLOCSET_DEFAULT_INITSIZE (8 * 1024)
#define ALLOCSET_DEFAULT_MAXSIZE (8 * 1024 * 1024)
-#endif /* MEMUTILS_H */
+#endif /* MEMUTILS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: nabstime.h,v 1.34 2001/10/28 06:26:09 momjian Exp $
+ * $Id: nabstime.h,v 1.35 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern AbsoluteTime GetCurrentAbsoluteTimeUsec(int *usec);
extern void abstime2tm(AbsoluteTime time, int *tzp, struct tm * tm, char **tzn);
-#endif /* NABSTIME_H */
+#endif /* NABSTIME_H */
*
* 1998 Jan Wieck
*
- * $Header: /cvsroot/pgsql/src/include/utils/numeric.h,v 1.14 2001/10/28 06:26:09 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/include/utils/numeric.h,v 1.15 2001/11/05 17:46:36 momjian Exp $
*
* ----------
*/
#define PG_GETARG_NUMERIC_COPY(n) DatumGetNumericCopy(PG_GETARG_DATUM(n))
#define PG_RETURN_NUMERIC(x) return NumericGetDatum(x)
-#endif /* _PG_NUMERIC_H_ */
+#endif /* _PG_NUMERIC_H_ */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: palloc.h,v 1.17 2001/10/25 05:50:10 momjian Exp $
+ * $Id: palloc.h,v 1.18 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define pstrdup(str) MemoryContextStrdup(CurrentMemoryContext, (str))
-#endif /* PALLOC_H */
+#endif /* PALLOC_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_crc.h,v 1.5 2001/10/28 06:26:09 momjian Exp $
+ * $Id: pg_crc.h,v 1.6 2001/11/05 17:46:36 momjian Exp $
*/
#ifndef PG_CRC_H
#define PG_CRC_H
/* Constant table for CRC calculation */
extern const uint64 crc_table[];
-#endif /* INT64_IS_BUSTED */
+#endif /* INT64_IS_BUSTED */
-#endif /* PG_CRC_H */
+#endif /* PG_CRC_H */
* The PostgreSQL locale utils.
*
*
- * $Id: pg_locale.h,v 1.10 2001/10/28 06:26:09 momjian Exp $
+ * $Id: pg_locale.h,v 1.11 2001/11/05 17:46:36 momjian Exp $
*
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
*
*------
*/
extern struct lconv *PGLC_localeconv(void);
-#endif /* USE_LOCALE */
+#endif /* USE_LOCALE */
-#endif /* _PG_LOCALE_ */
+#endif /* _PG_LOCALE_ */
/* ----------
* pg_lzcompress.h -
*
- * $Header: /cvsroot/pgsql/src/include/utils/pg_lzcompress.h,v 1.7 2001/10/28 06:26:09 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/include/utils/pg_lzcompress.h,v 1.8 2001/11/05 17:46:36 momjian Exp $
*
* Definitions for the builtin LZ compressor
* ----------
extern int pglz_get_next_decomp_char_from_lzdata(PGLZ_DecompState *dstate);
extern int pglz_get_next_decomp_char_from_plain(PGLZ_DecompState *dstate);
-#endif /* _PG_LZCOMPRESS_H_ */
+#endif /* _PG_LZCOMPRESS_H_ */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: portal.h,v 1.30 2001/10/25 05:50:10 momjian Exp $
+ * $Id: portal.h,v 1.31 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
TupleDesc attinfo, EState *state,
void (*cleanup) (Portal portal));
-#endif /* PORTAL_H */
+#endif /* PORTAL_H */
*
* Declarations for backend/utils/misc/ps_status.c
*
- * $Id: ps_status.h,v 1.22 2001/10/28 06:26:09 momjian Exp $
+ * $Id: ps_status.h,v 1.23 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern const char *get_ps_display(void);
-#endif /* PS_STATUS_H */
+#endif /* PS_STATUS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: rel.h,v 1.54 2001/10/28 06:26:09 momjian Exp $
+ * $Id: rel.h,v 1.55 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/* added to prevent circular dependency. bjm 1999/11/15 */
extern char *get_temp_rel_by_physicalname(const char *relname);
-#endif /* REL_H */
+#endif /* REL_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: relcache.h,v 1.28 2001/10/28 06:26:09 momjian Exp $
+ * $Id: relcache.h,v 1.29 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define RELCACHE_INIT_FILENAME "pg_internal.init"
-#endif /* RELCACHE_H */
+#endif /* RELCACHE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: selfuncs.h,v 1.3 2001/10/28 06:26:09 momjian Exp $
+ * $Id: selfuncs.h,v 1.4 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Datum hashcostestimate(PG_FUNCTION_ARGS);
extern Datum gistcostestimate(PG_FUNCTION_ARGS);
-#endif /* SELFUNCS_H */
+#endif /* SELFUNCS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: sets.h,v 1.11 2001/10/28 06:26:09 momjian Exp $
+ * $Id: sets.h,v 1.12 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Datum seteval(PG_FUNCTION_ARGS);
-#endif /* SETS_H */
+#endif /* SETS_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: syscache.h,v 1.35 2001/10/28 06:26:09 momjian Exp $
+ * $Id: syscache.h,v 1.36 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern Datum SysCacheGetAttr(int cacheId, HeapTuple tup,
AttrNumber attributeNumber, bool *isNull);
-#endif /* SYSCACHE_H */
+#endif /* SYSCACHE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: temprel.h,v 1.19 2001/10/28 06:26:10 momjian Exp $
+ * $Id: temprel.h,v 1.20 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define is_temp_rel_name(relname) (get_temp_rel_by_username(relname) != NULL)
-#endif /* TEMPREL_H */
+#endif /* TEMPREL_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: timestamp.h,v 1.23 2001/10/28 06:26:10 momjian Exp $
+ * $Id: timestamp.h,v 1.24 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void isoweek2date(int woy, int *year, int *mon, int *mday);
extern int date2isoweek(int year, int mon, int mday);
-#endif /* TIMESTAMP_H */
+#endif /* TIMESTAMP_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: tqual.h,v 1.36 2001/10/28 06:26:10 momjian Exp $
+ * $Id: tqual.h,v 1.37 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void SetQuerySnapshot(void);
extern void FreeXactSnapshot(void);
-#endif /* TQUAL_H */
+#endif /* TQUAL_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: tuplesort.h,v 1.10 2001/10/28 06:26:10 momjian Exp $
+ * $Id: tuplesort.h,v 1.11 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Datum datum1, bool isNull1,
Datum datum2, bool isNull2);
-#endif /* TUPLESORT_H */
+#endif /* TUPLESORT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: tuplestore.h,v 1.5 2001/10/28 06:26:10 momjian Exp $
+ * $Id: tuplestore.h,v 1.6 2001/11/05 17:46:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void tuplestore_markpos(Tuplestorestate *state);
extern void tuplestore_restorepos(Tuplestorestate *state);
-#endif /* TUPLESTORE_H */
+#endif /* TUPLESTORE_H */
/* NOTICE: BlankPortalAssignName: portal * already exists */
#define ECPG_NOTICE_PORTAL_EXISTS -605
-#endif /* !_ECPG_ERROR_H */
+#endif /* !_ECPG_ERROR_H */
#ifndef __cplusplus
#ifndef bool
#define bool char
-#endif /* ndef bool */
+#endif /* ndef bool */
#ifndef true
#define true ((bool) 1)
-#endif /* ndef true */
+#endif /* ndef true */
#ifndef false
#define false ((bool) 0)
-#endif /* ndef false */
-#endif /* not C++ */
+#endif /* ndef false */
+#endif /* not C++ */
#else /* __BEOS__ */
#include
-#endif /* __BEOS__ */
+#endif /* __BEOS__ */
#ifndef TRUE
#define TRUE 1
-#endif /* TRUE */
+#endif /* TRUE */
#ifndef FALSE
#define FALSE 0
-#endif /* FALSE */
+#endif /* FALSE */
#ifdef __cplusplus
extern "C"
#define DLLIMPORT __declspec (dllimport)
#else
#define DLLIMPORT
-#endif /* __CYGWIN__ */
-#endif /* DLLIMPORT */
+#endif /* __CYGWIN__ */
+#endif /* DLLIMPORT */
#define SQLERRMC_LEN 70
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/data.c,v 1.17 2001/10/05 17:37:07 meskes Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/data.c,v 1.18 2001/11/05 17:46:37 momjian Exp $ */
#include "postgres_fe.h"
case ECPGt_unsigned_long_long:
((unsigned long long int *) ind)[act_tuple] = -PQgetisnull(results, act_tuple, act_field);
break;
-#endif /* HAVE_LONG_LONG_INT_64 */
+#endif /* HAVE_LONG_LONG_INT_64 */
case ECPGt_NO_INDICATOR:
if (PQgetisnull(results, act_tuple, act_field))
{
((long long int *) var)[act_tuple] = (long long) 0;
break;
-#endif /* HAVE_STRTOLL */
+#endif /* HAVE_STRTOLL */
#ifdef HAVE_STRTOULL
case ECPGt_unsigned_long_long:
if (pval)
((unsigned long long int *) var)[act_tuple] = (long long) 0;
break;
-#endif /* HAVE_STRTOULL */
-#endif /* HAVE_LONG_LONG_INT_64 */
+#endif /* HAVE_STRTOULL */
+#endif /* HAVE_LONG_LONG_INT_64 */
case ECPGt_float:
case ECPGt_double:
/* dynamic SQL support routines
*
- * $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/descriptor.c,v 1.17 2001/10/25 05:50:11 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/descriptor.c,v 1.18 2001/11/05 17:46:37 momjian Exp $
*/
#include "postgres_fe.h"
case ECPGt_unsigned_long_long:
*(unsigned long long int *) var = (unsigned long long int) value;
break;
-#endif /* HAVE_LONG_LONG_INT_64 */
+#endif /* HAVE_LONG_LONG_INT_64 */
case ECPGt_float:
*(float *) var = (float) value;
break;
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.30 2001/10/28 06:26:11 momjian Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.31 2001/11/05 17:46:37 momjian Exp $ */
/*
* The aim is to get a simpler inteface to the database routines.
{
void *pointer;
struct auto_mem *next;
-} *auto_allocs = NULL;
+} *auto_allocs = NULL;
static void
add_mem(void *ptr, int lineno)
if (*(long long int *) var->ind_value < (long long) 0)
*tobeinserted_p = "null";
break;
-#endif /* HAVE_LONG_LONG_INT_64 */
+#endif /* HAVE_LONG_LONG_INT_64 */
default:
break;
}
*tobeinserted_p = mallocedval;
*malloced_p = true;
break;
-#endif /* HAVE_LONG_LONG_INT_64 */
+#endif /* HAVE_LONG_LONG_INT_64 */
case ECPGt_float:
if (!(mallocedval = ecpg_alloc(var->arrsize * 20, stmt->lineno)))
return false;
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_type.h,v 1.4 2001/10/28 06:26:11 momjian Exp $
+ * $Id: pg_type.h,v 1.5 2001/11/05 17:46:37 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
#define VARBITOID 1562
#define NUMERICOID 1700
-#endif /* PG_TYPE_H */
+#endif /* PG_TYPE_H */
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/prepare.c,v 1.9 2001/10/28 06:26:11 momjian Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/prepare.c,v 1.10 2001/11/05 17:46:37 momjian Exp $ */
#include "postgres_fe.h"
char *name;
struct statement *stmt;
struct prepared_statement *next;
-} *prep_stmts = NULL;
+} *prep_stmts = NULL;
static bool
isvarchar(unsigned char c)
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpgtcl.h,v 1.13 2001/10/28 06:26:11 momjian Exp $
+ * $Id: libpgtcl.h,v 1.14 2001/11/05 17:46:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern int Pgtcl_Init(Tcl_Interp *interp);
extern int Pgtcl_SafeInit(Tcl_Interp *interp);
-#endif /* LIBPGTCL_H */
+#endif /* LIBPGTCL_H */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.58 2001/10/25 05:50:12 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.59 2001/11/05 17:46:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#endif
return value;
}
-#endif /* TCL_ARRAYS */
+#endif /* TCL_ARRAYS */
/**********************************
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pgtclCmds.h,v 1.24 2001/10/28 06:26:11 momjian Exp $
+ * $Id: pgtclCmds.h,v 1.25 2001/11/05 17:46:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
* got round to deleting the Pg_TclNotifies structure.
*/
Tcl_HashTable notify_hash; /* Active pg_listen requests */
-} Pg_TclNotifies;
+} Pg_TclNotifies;
typedef struct Pg_ConnectionId_s
{
#else
int notifier_socket; /* PQsocket on which notifier is listening */
#endif
-} Pg_ConnectionId;
+} Pg_ConnectionId;
/* Values of res_copyStatus */
#define RES_COPY_NONE 0
extern int Pg_listen(
ClientData cData, Tcl_Interp *interp, int argc, char *argv[]);
-#endif /* PGTCLCMDS_H */
+#endif /* PGTCLCMDS_H */
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclId.c,v 1.28 2001/10/25 05:50:12 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclId.c,v 1.29 2001/11/05 17:46:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Tcl_Event header; /* Standard Tcl event info */
PGnotify info; /* Notify name from SQL server */
Pg_ConnectionId *connid; /* Connection for server */
-} NotifyEvent;
+} NotifyEvent;
/* Dispatch a NotifyEvent that has reached the front of the event queue */
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.62 2001/10/25 05:50:13 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.63 2001/11/05 17:46:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifdef KRB4
{"krb4", STARTUP_KRB4_MSG, 1},
{"kerberos", STARTUP_KRB4_MSG, 1},
-#endif /* KRB4 */
+#endif /* KRB4 */
#ifdef KRB5
{"krb5", STARTUP_KRB5_MSG, 1},
{"kerberos", STARTUP_KRB5_MSG, 1},
-#endif /* KRB5 */
+#endif /* KRB5 */
{UNAUTHNAME, STARTUP_MSG,
#if defined(KRB4) || defined(KRB5)
0
#else /* !(KRB4 || KRB5) */
1
-#endif /* !(KRB4 || KRB5) */
+#endif /* !(KRB4 || KRB5) */
},
{"password", STARTUP_PASSWORD_MSG, 0}
};
}
return STATUS_OK;
}
-#endif /* KRB4 */
+#endif /* KRB4 */
#ifdef KRB5
/*
return ret;
}
-#endif /* KRB5 */
+#endif /* KRB5 */
static int
pg_local_sendauth(char *PQerrormsg, PGconn *conn)
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: fe-auth.h,v 1.14 2001/10/28 06:26:12 momjian Exp $
+ * $Id: fe-auth.h,v 1.15 2001/11/05 17:46:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#define DEFAULT_CLIENT_AUTHSVC UNAUTHNAME
#else /* KRB4 || KRB5 */
#define DEFAULT_CLIENT_AUTHSVC "kerberos"
-#endif /* KRB4 || KRB5 */
+#endif /* KRB4 || KRB5 */
extern int fe_sendauth(AuthRequest areq, PGconn *conn, const char *hostname,
const char *password, char *PQerrormsg);
#define PG_KRB4_VERSION "PGVER4.1" /* at most KRB_SENDAUTH_VLEN chars */
#define PG_KRB5_VERSION "PGVER5.1"
-#endif /* FE_AUTH_H */
+#endif /* FE_AUTH_H */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.179 2001/10/28 06:26:12 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.180 2001/11/05 17:46:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
{
const char *envName,
*pgName;
-} EnvironmentOptions[] =
+} EnvironmentOptions[] =
{
/* common user-interface settings */
return 0;
}
-#endif /* NOT_USED */
+#endif /* NOT_USED */
/* ----------
flag = PQsetenvPoll(conn);
}
}
-#endif /* NOT_USED */
+#endif /* NOT_USED */
/*
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.59 2001/10/28 06:26:12 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.60 2001/11/05 17:46:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
{
return 0;
}
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
#ifdef ENABLE_NLS
return dgettext("libpq", msgid);
}
-#endif /* ENABLE_NLS */
+#endif /* ENABLE_NLS */
#ifdef WIN32
/*
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpq-fe.h,v 1.78 2001/11/02 20:51:27 tgl Exp $
+ * $Id: libpq-fe.h,v 1.79 2001/11/05 17:46:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/* Application-visible enum types */
-typedef enum
-{
- /*
- * Although you may decide to change this list in some way, values
- * which become unused should never be removed, nor should
- * constants be redefined - that would break compatibility with
- * existing code.
- */
- CONNECTION_OK,
- CONNECTION_BAD,
- /* Non-blocking mode only below here */
-
- /*
- * The existence of these should never be relied upon - they
- * should only be used for user feedback or similar purposes.
- */
- CONNECTION_STARTED, /* Waiting for connection to be made. */
- CONNECTION_MADE, /* Connection OK; waiting to send. */
- CONNECTION_AWAITING_RESPONSE, /* Waiting for a response from the
- * postmaster. */
- CONNECTION_AUTH_OK, /* Received authentication; waiting for
- * backend startup. */
- CONNECTION_SETENV /* Negotiating environment. */
-} ConnStatusType;
-
-typedef enum
-{
- PGRES_POLLING_FAILED = 0,
- PGRES_POLLING_READING, /* These two indicate that one may */
- PGRES_POLLING_WRITING, /* use select before polling again. */
- PGRES_POLLING_OK,
- PGRES_POLLING_ACTIVE /* Can call poll function immediately. */
-} PostgresPollingStatusType;
-
-typedef enum
-{
- PGRES_EMPTY_QUERY = 0,
- PGRES_COMMAND_OK, /* a query command that doesn't return
- * anything was executed properly by the
- * backend */
- PGRES_TUPLES_OK, /* a query command that returns tuples was
- * executed properly by the backend,
- * PGresult contains the result tuples */
- PGRES_COPY_OUT, /* Copy Out data transfer in progress */
- PGRES_COPY_IN, /* Copy In data transfer in progress */
- PGRES_BAD_RESPONSE, /* an unexpected response was recv'd from
- * the backend */
- PGRES_NONFATAL_ERROR,
- PGRES_FATAL_ERROR
-} ExecStatusType;
+ typedef enum
+ {
+ /*
+ * Although you may decide to change this list in some way, values
+ * which become unused should never be removed, nor should
+ * constants be redefined - that would break compatibility with
+ * existing code.
+ */
+ CONNECTION_OK,
+ CONNECTION_BAD,
+ /* Non-blocking mode only below here */
+
+ /*
+ * The existence of these should never be relied upon - they
+ * should only be used for user feedback or similar purposes.
+ */
+ CONNECTION_STARTED, /* Waiting for connection to be made. */
+ CONNECTION_MADE, /* Connection OK; waiting to send. */
+ CONNECTION_AWAITING_RESPONSE, /* Waiting for a response from the
+ * postmaster. */
+ CONNECTION_AUTH_OK, /* Received authentication; waiting for
+ * backend startup. */
+ CONNECTION_SETENV /* Negotiating environment. */
+ } ConnStatusType;
+
+ typedef enum
+ {
+ PGRES_POLLING_FAILED = 0,
+ PGRES_POLLING_READING, /* These two indicate that one may */
+ PGRES_POLLING_WRITING, /* use select before polling again. */
+ PGRES_POLLING_OK,
+ PGRES_POLLING_ACTIVE /* Can call poll function immediately. */
+ } PostgresPollingStatusType;
+
+ typedef enum
+ {
+ PGRES_EMPTY_QUERY = 0,
+ PGRES_COMMAND_OK, /* a query command that doesn't return
+ * anything was executed properly by the
+ * backend */
+ PGRES_TUPLES_OK, /* a query command that returns tuples was
+ * executed properly by the backend,
+ * PGresult contains the result tuples */
+ PGRES_COPY_OUT, /* Copy Out data transfer in progress */
+ PGRES_COPY_IN, /* Copy In data transfer in progress */
+ PGRES_BAD_RESPONSE, /* an unexpected response was recv'd from
+ * the backend */
+ PGRES_NONFATAL_ERROR,
+ PGRES_FATAL_ERROR
+ } ExecStatusType;
/* PGconn encapsulates a connection to the backend.
* The contents of this struct are not supposed to be known to applications.
*/
-typedef struct pg_conn PGconn;
+ typedef struct pg_conn PGconn;
/* PGresult encapsulates the result of a query (or more precisely, of a single
* SQL command --- a query string given to PQsendQuery can contain multiple
* commands and thus return multiple PGresult objects).
* The contents of this struct are not supposed to be known to applications.
*/
-typedef struct pg_result PGresult;
+ typedef struct pg_result PGresult;
/* PGnotify represents the occurrence of a NOTIFY message.
* Ideally this would be an opaque typedef, but it's so simple that it's
* NOTE: in Postgres 6.4 and later, the be_pid is the notifying backend's,
* whereas in earlier versions it was always your own backend's PID.
*/
-typedef struct pgNotify
-{
- char relname[NAMEDATALEN]; /* name of relation
- * containing data */
- int be_pid; /* process id of backend */
-} PGnotify;
+ typedef struct pgNotify
+ {
+ char relname[NAMEDATALEN]; /* name of relation
+ * containing data */
+ int be_pid; /* process id of backend */
+ } PGnotify;
/* PQnoticeProcessor is the function type for the notice-message callback.
*/
-typedef void (*PQnoticeProcessor) (void *arg, const char *message);
+ typedef void (*PQnoticeProcessor) (void *arg, const char *message);
/* Print options for PQprint() */
-typedef char pqbool;
+ typedef char pqbool;
-typedef struct _PQprintOpt
-{
- pqbool header; /* print output field headings and row
- * count */
- pqbool align; /* fill align the fields */
- pqbool standard; /* old brain dead format */
- pqbool html3; /* output html tables */
- pqbool expanded; /* expand tables */
- pqbool pager; /* use pager for output if needed */
- char *fieldSep; /* field separator */
- char *tableOpt; /* insert to HTML
*/
- char *caption; /* HTML
*/
- char **fieldName; /* null terminated array of repalcement
- * field names */
-} PQprintOpt;
+ typedef struct _PQprintOpt
+ {
+ pqbool header; /* print output field headings and row
+ * count */
+ pqbool align; /* fill align the fields */
+ pqbool standard; /* old brain dead format */
+ pqbool html3; /* output html tables */
+ pqbool expanded; /* expand tables */
+ pqbool pager; /* use pager for output if needed */
+ char *fieldSep; /* field separator */
+
char *tableOpt; /* insert to HTML
*/
+ char *caption; /* HTML
*/
+ char **fieldName; /* null terminated array of repalcement
+ * field names */
+ } PQprintOpt;
/* ----------------
* Structure for the conninfo parameter definitions returned by PQconndefaults
* will release both the val strings and the PQconninfoOption array itself.
* ----------------
*/
-typedef struct _PQconninfoOption
-{
- char *keyword; /* The keyword of the option */
- char *envvar; /* Fallback environment variable name */
- char *compiled; /* Fallback compiled in default value */
- char *val; /* Option's current value, or NULL */
- char *label; /* Label for field in connect dialog */
- char *dispchar; /* Character to display for this field in
- * a connect dialog. Values are: ""
- * Display entered value as is "*"
- * Password field - hide value "D" Debug
- * option - don't show by default */
- int dispsize; /* Field size in characters for dialog */
-} PQconninfoOption;
+ typedef struct _PQconninfoOption
+ {
+ char *keyword; /* The keyword of the option */
+ char *envvar; /* Fallback environment variable name */
+ char *compiled; /* Fallback compiled in default value */
+ char *val; /* Option's current value, or NULL */
+ char *label; /* Label for field in connect dialog */
+ char *dispchar; /* Character to display for this field in
+ * a connect dialog. Values are: ""
+ * Display entered value as is "*"
+ * Password field - hide value "D" Debug
+ * option - don't show by default */
+ int dispsize; /* Field size in characters for dialog */
+ } PQconninfoOption;
/* ----------------
* PQArgBlock -- structure for PQfn() arguments
* ----------------
*/
-typedef struct
-{
- int len;
- int isint;
- union
+ typedef struct
{
- int *ptr; /* can't use void (dec compiler barfs) */
- int integer;
- } u;
-} PQArgBlock;
+ int len;
+ int isint;
+ union
+ {
+ int *ptr; /* can't use void (dec compiler barfs) */
+ int integer;
+ } u;
+ } PQArgBlock;
/* ----------------
* Exported functions of libpq
/* make a new client connection to the backend */
/* Asynchronous (non-blocking) */
-extern PGconn *PQconnectStart(const char *conninfo);
-extern PostgresPollingStatusType PQconnectPoll(PGconn *conn);
+ extern PGconn *PQconnectStart(const char *conninfo);
+ extern PostgresPollingStatusType PQconnectPoll(PGconn *conn);
/* Synchronous (blocking) */
-extern PGconn *PQconnectdb(const char *conninfo);
-extern PGconn *PQsetdbLogin(const char *pghost, const char *pgport,
- const char *pgoptions, const char *pgtty,
- const char *dbName,
- const char *login, const char *pwd);
+ extern PGconn *PQconnectdb(const char *conninfo);
+ extern PGconn *PQsetdbLogin(const char *pghost, const char *pgport,
+ const char *pgoptions, const char *pgtty,
+ const char *dbName,
+ const char *login, const char *pwd);
#define PQsetdb(M_PGHOST,M_PGPORT,M_PGOPT,M_PGTTY,M_DBNAME) \
PQsetdbLogin(M_PGHOST, M_PGPORT, M_PGOPT, M_PGTTY, M_DBNAME, NULL, NULL)
/* close the current connection and free the PGconn data structure */
-extern void PQfinish(PGconn *conn);
+ extern void PQfinish(PGconn *conn);
/* get info about connection options known to PQconnectdb */
-extern PQconninfoOption *PQconndefaults(void);
+ extern PQconninfoOption *PQconndefaults(void);
/* free the data structure returned by PQconndefaults() */
-extern void PQconninfoFree(PQconninfoOption *connOptions);
+ extern void PQconninfoFree(PQconninfoOption *connOptions);
/*
* close the current connection and restablish a new one with the same
* parameters
*/
/* Asynchronous (non-blocking) */
-extern int PQresetStart(PGconn *conn);
-extern PostgresPollingStatusType PQresetPoll(PGconn *conn);
+ extern int PQresetStart(PGconn *conn);
+ extern PostgresPollingStatusType PQresetPoll(PGconn *conn);
/* Synchronous (blocking) */
-extern void PQreset(PGconn *conn);
+ extern void PQreset(PGconn *conn);
/* issue a cancel request */
-extern int PQrequestCancel(PGconn *conn);
+ extern int PQrequestCancel(PGconn *conn);
/* Accessor functions for PGconn objects */
-extern char *PQdb(const PGconn *conn);
-extern char *PQuser(const PGconn *conn);
-extern char *PQpass(const PGconn *conn);
-extern char *PQhost(const PGconn *conn);
-extern char *PQport(const PGconn *conn);
-extern char *PQtty(const PGconn *conn);
-extern char *PQoptions(const PGconn *conn);
-extern ConnStatusType PQstatus(const PGconn *conn);
-extern char *PQerrorMessage(const PGconn *conn);
-extern int PQsocket(const PGconn *conn);
-extern int PQbackendPID(const PGconn *conn);
-extern int PQclientEncoding(const PGconn *conn);
-extern int PQsetClientEncoding(PGconn *conn, const char *encoding);
+ extern char *PQdb(const PGconn *conn);
+ extern char *PQuser(const PGconn *conn);
+ extern char *PQpass(const PGconn *conn);
+ extern char *PQhost(const PGconn *conn);
+ extern char *PQport(const PGconn *conn);
+ extern char *PQtty(const PGconn *conn);
+ extern char *PQoptions(const PGconn *conn);
+ extern ConnStatusType PQstatus(const PGconn *conn);
+ extern char *PQerrorMessage(const PGconn *conn);
+ extern int PQsocket(const PGconn *conn);
+ extern int PQbackendPID(const PGconn *conn);
+ extern int PQclientEncoding(const PGconn *conn);
+ extern int PQsetClientEncoding(PGconn *conn, const char *encoding);
#ifdef USE_SSL
/* Get the SSL structure associated with a connection */
-extern SSL *PQgetssl(PGconn *conn);
+ extern SSL *PQgetssl(PGconn *conn);
#endif
/* Enable/disable tracing */
-extern void PQtrace(PGconn *conn, FILE *debug_port);
-extern void PQuntrace(PGconn *conn);
+ extern void PQtrace(PGconn *conn, FILE *debug_port);
+ extern void PQuntrace(PGconn *conn);
/* Override default notice processor */
-extern PQnoticeProcessor PQsetNoticeProcessor(PGconn *conn,
- PQnoticeProcessor proc,
- void *arg);
+ extern PQnoticeProcessor PQsetNoticeProcessor(PGconn *conn,
+ PQnoticeProcessor proc,
+ void *arg);
/* === in fe-exec.c === */
/* Quoting strings before inclusion in queries. */
-extern size_t PQescapeString(char *to, const char *from, size_t length);
-extern unsigned char *PQescapeBytea(unsigned char *bintext, size_t binlen,
- size_t *bytealen);
+ extern size_t PQescapeString(char *to, const char *from, size_t length);
+ extern unsigned char *PQescapeBytea(unsigned char *bintext, size_t binlen,
+ size_t *bytealen);
/* Simple synchronous query */
-extern PGresult *PQexec(PGconn *conn, const char *query);
-extern PGnotify *PQnotifies(PGconn *conn);
-extern void PQfreeNotify(PGnotify *notify);
+ extern PGresult *PQexec(PGconn *conn, const char *query);
+ extern PGnotify *PQnotifies(PGconn *conn);
+ extern void PQfreeNotify(PGnotify *notify);
/* Interface for multiple-result or asynchronous queries */
-extern int PQsendQuery(PGconn *conn, const char *query);
-extern PGresult *PQgetResult(PGconn *conn);
+ extern int PQsendQuery(PGconn *conn, const char *query);
+ extern PGresult *PQgetResult(PGconn *conn);
/* Routines for managing an asychronous query */
-extern int PQisBusy(PGconn *conn);
-extern int PQconsumeInput(PGconn *conn);
+ extern int PQisBusy(PGconn *conn);
+ extern int PQconsumeInput(PGconn *conn);
/* Routines for copy in/out */
-extern int PQgetline(PGconn *conn, char *string, int length);
-extern int PQputline(PGconn *conn, const char *string);
-extern int PQgetlineAsync(PGconn *conn, char *buffer, int bufsize);
-extern int PQputnbytes(PGconn *conn, const char *buffer, int nbytes);
-extern int PQendcopy(PGconn *conn);
+ extern int PQgetline(PGconn *conn, char *string, int length);
+ extern int PQputline(PGconn *conn, const char *string);
+ extern int PQgetlineAsync(PGconn *conn, char *buffer, int bufsize);
+ extern int PQputnbytes(PGconn *conn, const char *buffer, int nbytes);
+ extern int PQendcopy(PGconn *conn);
/* Set blocking/nonblocking connection to the backend */
-extern int PQsetnonblocking(PGconn *conn, int arg);
-extern int PQisnonblocking(const PGconn *conn);
+ extern int PQsetnonblocking(PGconn *conn, int arg);
+ extern int PQisnonblocking(const PGconn *conn);
/* Force the write buffer to be written (or at least try) */
-extern int PQflush(PGconn *conn);
+ extern int PQflush(PGconn *conn);
/*
* "Fast path" interface --- not really recommended for application
* use
*/
-extern PGresult *PQfn(PGconn *conn,
- int fnid,
- int *result_buf,
- int *result_len,
- int result_is_int,
- const PQArgBlock *args,
- int nargs);
+ extern PGresult *PQfn(PGconn *conn,
+ int fnid,
+ int *result_buf,
+ int *result_len,
+ int result_is_int,
+ const PQArgBlock *args,
+ int nargs);
/* Accessor functions for PGresult objects */
-extern ExecStatusType PQresultStatus(const PGresult *res);
-extern char *PQresStatus(ExecStatusType status);
-extern char *PQresultErrorMessage(const PGresult *res);
-extern int PQntuples(const PGresult *res);
-extern int PQnfields(const PGresult *res);
-extern int PQbinaryTuples(const PGresult *res);
-extern char *PQfname(const PGresult *res, int field_num);
-extern int PQfnumber(const PGresult *res, const char *field_name);
-extern Oid PQftype(const PGresult *res, int field_num);
-extern int PQfsize(const PGresult *res, int field_num);
-extern int PQfmod(const PGresult *res, int field_num);
-extern char *PQcmdStatus(PGresult *res);
-extern char *PQoidStatus(const PGresult *res); /* old and ugly */
-extern Oid PQoidValue(const PGresult *res); /* new and improved */
-extern char *PQcmdTuples(PGresult *res);
-extern char *PQgetvalue(const PGresult *res, int tup_num, int field_num);
-extern int PQgetlength(const PGresult *res, int tup_num, int field_num);
-extern int PQgetisnull(const PGresult *res, int tup_num, int field_num);
+ extern ExecStatusType PQresultStatus(const PGresult *res);
+ extern char *PQresStatus(ExecStatusType status);
+ extern char *PQresultErrorMessage(const PGresult *res);
+ extern int PQntuples(const PGresult *res);
+ extern int PQnfields(const PGresult *res);
+ extern int PQbinaryTuples(const PGresult *res);
+ extern char *PQfname(const PGresult *res, int field_num);
+ extern int PQfnumber(const PGresult *res, const char *field_name);
+ extern Oid PQftype(const PGresult *res, int field_num);
+ extern int PQfsize(const PGresult *res, int field_num);
+ extern int PQfmod(const PGresult *res, int field_num);
+ extern char *PQcmdStatus(PGresult *res);
+ extern char *PQoidStatus(const PGresult *res); /* old and ugly */
+ extern Oid PQoidValue(const PGresult *res); /* new and improved */
+ extern char *PQcmdTuples(PGresult *res);
+ extern char *PQgetvalue(const PGresult *res, int tup_num, int field_num);
+ extern int PQgetlength(const PGresult *res, int tup_num, int field_num);
+ extern int PQgetisnull(const PGresult *res, int tup_num, int field_num);
/* Delete a PGresult */
-extern void PQclear(PGresult *res);
+ extern void PQclear(PGresult *res);
/*
* Make an empty PGresult with given status (some apps find this
* useful). If conn is not NULL and status indicates an error, the
* conn's errorMessage is copied.
*/
-extern PGresult *PQmakeEmptyPGresult(PGconn *conn, ExecStatusType status);
+ extern PGresult *PQmakeEmptyPGresult(PGconn *conn, ExecStatusType status);
/* === in fe-print.c === */
-extern void PQprint(FILE *fout, /* output stream */
- const PGresult *res,
- const PQprintOpt *ps); /* option structure */
+ extern void PQprint(FILE *fout, /* output stream */
+ const PGresult *res,
+ const PQprintOpt *ps); /* option structure */
/*
* really old printing routines
*/
-extern void PQdisplayTuples(const PGresult *res,
- FILE *fp, /* where to send the output */
- int fillAlign, /* pad the fields with
- * spaces */
- const char *fieldSep, /* field separator */
- int printHeader, /* display headers? */
- int quiet);
-
-extern void PQprintTuples(const PGresult *res,
- FILE *fout, /* output stream */
- int printAttName, /* print attribute names */
- int terseOutput, /* delimiter bars */
- int width); /* width of column, if
- * 0, use variable width */
+ extern void PQdisplayTuples(const PGresult *res,
+ FILE *fp, /* where to send the
+ * output */
+ int fillAlign, /* pad the fields with
+ * spaces */
+ const char *fieldSep, /* field separator */
+ int printHeader, /* display headers? */
+ int quiet);
+
+ extern void PQprintTuples(const PGresult *res,
+ FILE *fout, /* output stream */
+ int printAttName, /* print attribute names */
+ int terseOutput, /* delimiter bars */
+ int width); /* width of column, if
+ * 0, use variable width */
/* === in fe-lobj.c === */
/* Large-object access routines */
-extern int lo_open(PGconn *conn, Oid lobjId, int mode);
-extern int lo_close(PGconn *conn, int fd);
-extern int lo_read(PGconn *conn, int fd, char *buf, size_t len);
-extern int lo_write(PGconn *conn, int fd, char *buf, size_t len);
-extern int lo_lseek(PGconn *conn, int fd, int offset, int whence);
-extern Oid lo_creat(PGconn *conn, int mode);
-extern int lo_tell(PGconn *conn, int fd);
-extern int lo_unlink(PGconn *conn, Oid lobjId);
-extern Oid lo_import(PGconn *conn, const char *filename);
-extern int lo_export(PGconn *conn, Oid lobjId, const char *filename);
+ extern int lo_open(PGconn *conn, Oid lobjId, int mode);
+ extern int lo_close(PGconn *conn, int fd);
+ extern int lo_read(PGconn *conn, int fd, char *buf, size_t len);
+ extern int lo_write(PGconn *conn, int fd, char *buf, size_t len);
+ extern int lo_lseek(PGconn *conn, int fd, int offset, int whence);
+ extern Oid lo_creat(PGconn *conn, int mode);
+ extern int lo_tell(PGconn *conn, int fd);
+ extern int lo_unlink(PGconn *conn, Oid lobjId);
+ extern Oid lo_import(PGconn *conn, const char *filename);
+ extern int lo_export(PGconn *conn, Oid lobjId, const char *filename);
/* === in fe-misc.c === */
/* Determine length of multibyte encoded char at *s */
-extern int PQmblen(const unsigned char *s, int encoding);
+ extern int PQmblen(const unsigned char *s, int encoding);
/* Get encoding id from environment variable PGCLIENTENCODING */
-extern int PQenv2encoding(void);
+ extern int PQenv2encoding(void);
#ifdef __cplusplus
}
#endif
-#endif /* LIBPQ_FE_H */
+#endif /* LIBPQ_FE_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpq-int.h,v 1.43 2001/11/02 20:51:27 tgl Exp $
+ * $Id: libpq-int.h,v 1.44 2001/11/05 17:46:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
Oid typid; /* type id */
int typlen; /* type size */
int atttypmod; /* type-specific modifier info */
-} PGresAttDesc;
+} PGresAttDesc;
/* Data for a single attribute of a single tuple */
int len; /* length in bytes of the value */
char *value; /* actual value, plus terminating zero
* byte */
-} PGresAttValue;
+} PGresAttValue;
struct pg_result
{
PGASYNC_READY, /* result ready for PQgetResult */
PGASYNC_COPY_IN, /* Copy In data transfer in progress */
PGASYNC_COPY_OUT /* Copy Out data transfer in progress */
-} PGAsyncStatusType;
+} PGAsyncStatusType;
/* PGSetenvStatusType defines the state of the PQSetenv state machine */
typedef enum
SETENV_STATE_ENCODINGS_SEND, /* About to send an "encodings" query */
SETENV_STATE_ENCODINGS_WAIT, /* Waiting for query to complete */
SETENV_STATE_IDLE
-} PGSetenvStatusType;
+} PGSetenvStatusType;
/* large-object-access data ... allocated only if large-object code is used. */
typedef struct pgLobjfuncs
Oid fn_lo_tell; /* OID of backend function lo_tell */
Oid fn_lo_read; /* OID of backend function LOread */
Oid fn_lo_write; /* OID of backend function LOwrite */
-} PGlobjfuncs;
+} PGlobjfuncs;
/* PGconn stores all the state data associated with a single connection
* to a backend.
#define SOCK_STRERROR strerror
#endif
-#endif /* LIBPQ_INT_H */
+#endif /* LIBPQ_INT_H */
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqexpbuffer.h,v 1.9 2001/10/28 06:26:12 momjian Exp $
+ * $Id: pqexpbuffer.h,v 1.10 2001/11/05 17:46:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
extern void appendBinaryPQExpBuffer(PQExpBuffer str,
const char *data, size_t datalen);
-#endif /* PQEXPBUFFER_H */
+#endif /* PQEXPBUFFER_H */
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/pqsignal.c,v 1.13 2001/01/24 19:43:31 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/pqsignal.c,v 1.14 2001/11/05 17:46:38 momjian Exp $
*
* NOTES
* This shouldn't be in libpq, but the monitor and some other
if (sigaction(signo, &act, &oact) < 0)
return SIG_ERR;
return oact.sa_handler;
-#endif /* !HAVE_POSIX_SIGNALS */
+#endif /* !HAVE_POSIX_SIGNALS */
}
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqsignal.h,v 1.12 2001/10/28 06:26:12 momjian Exp $
+ * $Id: pqsignal.h,v 1.13 2001/11/05 17:46:38 momjian Exp $
*
* NOTES
* This shouldn't be in libpq, but the monitor and some other
extern pqsigfunc pqsignal(int signo, pqsigfunc func);
-#endif /* PQSIGNAL_H */
+#endif /* PQSIGNAL_H */
char *buffer; /* pointer to the buffer */
Int4 *used; /* used space in the buffer (for strings
* not counting the '\0') */
- char *ttlbuf; /* to save the large result */
+ char *ttlbuf; /* to save the large result */
Int4 ttlbuflen; /* the buffer length */
Int2 returntype; /* kind of conversion to be applied when
* returning (SQL_C_DEFAULT,
memset(&rv->connInfo, 0, sizeof(ConnInfo));
#ifdef DRIVER_CURSOR_IMPLEMENT
rv->connInfo.updatable_cursors = 1;
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
memcpy(&(rv->connInfo.drivers), &globals, sizeof(globals));
rv->sock = SOCK_Constructor(rv);
if (!rv->sock)
#ifdef MULTIBYTE
rv->client_encoding = NULL;
rv->server_encoding = NULL;
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
/* Initialize statement options to defaults */
free(self->client_encoding);
if (self->server_encoding)
free(self->server_encoding);
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
/* Free up statement holders */
if (self->stmts)
{
#ifdef MULTIBYTE
char *encoding;
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
mylog("%s: entering...\n", func);
#ifdef MULTIBYTE
char *client_encoding;
char *server_encoding;
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
};
#include "pgapifunc.h"
#ifdef __CYGWIN__
-#define TIMEZONE_GLOBAL _timezone
+#define TIMEZONE_GLOBAL _timezone
#elif defined(WIN32) || defined(HAVE_INT_TIMEZONE)
-#define TIMEZONE_GLOBAL timezone
+#define TIMEZONE_GLOBAL timezone
#endif
/*
-/*
+/*
* TIMESTAMP <-----> SIMPLE_TIME
* precision support since 7.2.
* time zone support is unavailable(the stuff is unreliable)
*/
-static BOOL timestamp2stime(const char * str, SIMPLE_TIME *st, BOOL *bZone, int *zone)
+static BOOL
+timestamp2stime(const char *str, SIMPLE_TIME *st, BOOL *bZone, int *zone)
{
- char rest[64], *ptr;
- int scnt, i;
+ char rest[64],
+ *ptr;
+ int scnt,
+ i;
long timediff;
- BOOL withZone = *bZone;
+ BOOL withZone = *bZone;
*bZone = FALSE;
*zone = 0;
st->fr = atoi(&rest[1]);
break;
default:
- return TRUE;
+ return TRUE;
}
if (!withZone || !*bZone || st->y < 1970)
return TRUE;
return TRUE;
}
timediff = TIMEZONE_GLOBAL + (*zone) * 3600;
- if (!daylight && timediff == 0) /* the same timezone */
+ if (!daylight && timediff == 0) /* the same timezone */
return TRUE;
else
{
- struct tm tm, *tm2;
+ struct tm tm,
+ *tm2;
time_t time0;
*bZone = FALSE;
return TRUE;
if (tm.tm_isdst > 0)
timediff -= 3600;
- if (timediff == 0) /* the same time zone */
+ if (timediff == 0) /* the same time zone */
return TRUE;
time0 -= timediff;
if (time0 >= 0 && (tm2 = localtime(&time0)) != NULL)
st->y = tm2->tm_year + 1900;
st->m = tm2->tm_mon + 1;
st->d = tm2->tm_mday;
- st->hh= tm2->tm_hour;
- st->mm= tm2->tm_min;
- st->ss= tm2->tm_sec;
+ st->hh = tm2->tm_hour;
+ st->mm = tm2->tm_min;
+ st->ss = tm2->tm_sec;
*bZone = TRUE;
}
}
-#endif /* WIN32 */
- return TRUE;
+#endif /* WIN32 */
+ return TRUE;
}
-static BOOL stime2timestamp(const SIMPLE_TIME *st, char * str, BOOL bZone, BOOL precision)
+static BOOL
+stime2timestamp(const SIMPLE_TIME *st, char *str, BOOL bZone, BOOL precision)
{
- char precstr[16], zonestr[16];
- int i;
+ char precstr[16],
+ zonestr[16];
+ int i;
precstr[0] = '\0';
if (precision && st->fr)
#if defined(WIN32) || defined(HAVE_INT_TIMEZONE)
if (bZone && tzname[0] && tzname[0][0] && st->y >= 1970)
{
- long zoneint;
+ long zoneint;
struct tm tm;
time_t time0;
zoneint = TIMEZONE_GLOBAL;
- if (daylight && st->y >=1900)
- {
+ if (daylight && st->y >= 1900)
+ {
tm.tm_year = st->y - 1900;
tm.tm_mon = st->m - 1;
tm.tm_mday = st->d;
zoneint -= 3600;
}
if (zoneint > 0)
- sprintf(zonestr, "-%02d", (int)zoneint / 3600);
+ sprintf(zonestr, "-%02d", (int) zoneint / 3600);
else
- sprintf(zonestr, "+%02d", -(int)zoneint / 3600);
+ sprintf(zonestr, "+%02d", -(int) zoneint / 3600);
}
-#endif /* WIN32 */
+#endif /* WIN32 */
sprintf(str, "%.4d-%.2d-%.2d %.2d:%.2d:%.2d%s%s", st->y, st->m, st->d, st->hh, st->mm, st->ss, precstr, zonestr);
- return TRUE;
+ return TRUE;
}
/* This is called by SQLFetch() */
const char *neut_str = value;
char midtemp[2][32];
int mtemp_cnt = 0;
- static BindInfoClass sbic;
- BindInfoClass *pbic;
+ static BindInfoClass sbic;
+ BindInfoClass *pbic;
if (stmt->current_col >= 0)
{
pbic = &stmt->bindings[stmt->current_col];
if (pbic->data_left == -2)
- pbic->data_left = (cbValueMax > 0) ? 0 : -1; /* This seems to be * needed for ADO ? */
+ pbic->data_left = (cbValueMax > 0) ? 0 : -1; /* This seems to be *
+ * needed for ADO ? */
if (pbic->data_left == 0)
{
if (pbic->ttlbuf != NULL)
pbic->ttlbuf = NULL;
pbic->ttlbuflen = 0;
}
- pbic->data_left = -2; /* needed by ADO ? */
- return COPY_NO_DATA_FOUND;
+ pbic->data_left = -2; /* needed by ADO ? */
+ return COPY_NO_DATA_FOUND;
}
}
/*---------
st.fr = 0;
if (strnicmp(value, "invalid", 7) != 0)
{
- BOOL bZone = (field_type != PG_TYPE_TIMESTAMP_NO_TMZONE && PG_VERSION_GE(SC_get_conn(stmt), 7.2));
- int zone;
- /*sscanf(value, "%4d-%2d-%2d %2d:%2d:%2d", &st.y, &st.m, &st.d, &st.hh, &st.mm, &st.ss);*/
- bZone = FALSE; /* time zone stuff is unreliable */
+ BOOL bZone = (field_type != PG_TYPE_TIMESTAMP_NO_TMZONE && PG_VERSION_GE(SC_get_conn(stmt), 7.2));
+ int zone;
+
+ /*
+ * sscanf(value, "%4d-%2d-%2d %2d:%2d:%2d", &st.y, &st.m,
+ * &st.d, &st.hh, &st.mm, &st.ss);
+ */
+ bZone = FALSE; /* time zone stuff is unreliable */
timestamp2stime(value, &st, &bZone, &zone);
}
else
{
case SQL_C_DATE:
#if (ODBCVER >= 0x0300)
- case SQL_C_TYPE_DATE: /* 91 */
+ case SQL_C_TYPE_DATE: /* 91 */
#endif
len = 6;
{
case SQL_C_TIME:
#if (ODBCVER >= 0x0300)
- case SQL_C_TYPE_TIME: /* 92 */
+ case SQL_C_TYPE_TIME: /* 92 */
#endif
len = 6;
{
case SQL_C_TIMESTAMP:
#if (ODBCVER >= 0x0300)
- case SQL_C_TYPE_TIMESTAMP: /* 93 */
+ case SQL_C_TYPE_TIMESTAMP: /* 93 */
#endif
len = 16;
{
if (pcbValue)
*(SDWORD *) ((char *) pcbValue + pcbValueOffset) = len;
- if (result == COPY_OK && stmt->current_col >=0)
+ if (result == COPY_OK && stmt->current_col >= 0)
stmt->bindings[stmt->current_col].data_left = 0;
return result;
#ifdef DRIVER_CURSOR_IMPLEMENT
BOOL search_from_pos = FALSE;
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
if (ci->disallow_premature)
prepare_dummy_cursor = stmt->pre_executing;
else
search_from_pos = TRUE;
}
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
/* If the application hasn't set a cursor name, then generate one */
if (stmt->cursor_name[0] == '\0')
if (multibyte_strchr(&old_statement[opos], '('))
#else
if (strchr(&old_statement[opos], '('))
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
proc_no_param = FALSE;
continue;
}
npos -= 5;
CVT_APPEND_STR(", CTID, OID from");
}
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
}
if (token_len == 3)
{
case SQL_C_DATE:
#if (ODBCVER >= 0x0300)
- case SQL_C_TYPE_DATE: /* 91 */
+ case SQL_C_TYPE_DATE: /* 91 */
#endif
{
DATE_STRUCT *ds = (DATE_STRUCT *) buffer;
case SQL_C_TIME:
#if (ODBCVER >= 0x0300)
- case SQL_C_TYPE_TIME: /* 92 */
+ case SQL_C_TYPE_TIME: /* 92 */
#endif
{
TIME_STRUCT *ts = (TIME_STRUCT *) buffer;
case SQL_C_TIMESTAMP:
#if (ODBCVER >= 0x0300)
- case SQL_C_TYPE_TIMESTAMP: /* 93 */
+ case SQL_C_TYPE_TIMESTAMP: /* 93 */
#endif
{
TIMESTAMP_STRUCT *tss = (TIMESTAMP_STRUCT *) buffer;
case SQL_DATE:
#if (ODBCVER >= 0x0300)
- case SQL_TYPE_DATE: /* 91 */
+ case SQL_TYPE_DATE: /* 91 */
#endif
if (buf)
{ /* copy char data to time */
case SQL_TIME:
#if (ODBCVER >= 0x0300)
- case SQL_TYPE_TIME: /* 92 */
+ case SQL_TYPE_TIME: /* 92 */
#endif
if (buf)
{ /* copy char data to time */
case SQL_TIMESTAMP:
#if (ODBCVER >= 0x0300)
- case SQL_TYPE_TIMESTAMP: /* 93 */
+ case SQL_TYPE_TIMESTAMP: /* 93 */
#endif
if (buf)
parse_datetime(cbuf, &st);
}
- /* sprintf(tmp, "'%.4d-%.2d-%.2d %.2d:%.2d:%.2d'",
- st.y, st.m, st.d, st.hh, st.mm, st.ss);*/
+ /*
+ * sprintf(tmp, "'%.4d-%.2d-%.2d %.2d:%.2d:%.2d'", st.y,
+ * st.m, st.d, st.hh, st.mm, st.ss);
+ */
tmp[0] = '\'';
/* Time zone stuff is unreliable */
stime2timestamp(&st, tmp + 1, FALSE, PG_VERSION_GE(conn, 7.2));
#ifdef DRIVER_CURSOR_IMPLEMENT
if (search_from_pos)
stmt->options.scroll_concurrency = SQL_CONCUR_READ_ONLY;
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
if (prepare_dummy_cursor && SC_is_pre_executable(stmt))
{
char fetchstr[128];
static int
pg_bin2hex(UCHAR *src, UCHAR *dst, int length)
{
- UCHAR chr, *src_wk, *dst_wk;
- BOOL backwards;
- int i;
-
+ UCHAR chr,
+ *src_wk,
+ *dst_wk;
+ BOOL backwards;
+ int i;
+
backwards = FALSE;
if (dst < src)
{
dst[2 * length] = '\0';
return length;
}
+
/*-------
* 1. get oid (from 'value')
* 2. open the large object
BindInfoClass *bindInfo = NULL;
ConnectionClass *conn = SC_get_conn(stmt);
ConnInfo *ci = &(conn->connInfo);
- int factor = (fCType == SQL_C_CHAR ? 2 : 1);
+ int factor = (fCType == SQL_C_CHAR ? 2 : 1);
/* If using SQLGetData, then current_col will be set */
if (stmt->current_col >= 0)
int mm;
int ss;
int fr;
-} SIMPLE_TIME;
+} SIMPLE_TIME;
int copy_and_convert_field_bindinfo(StatementClass *stmt, Int4 field_type, void *value, int col);
int copy_and_convert_field(StatementClass *stmt, Int4 field_type, void *value, Int2 fCType,
{
sprintf(tmp, "%d", comval->unique_index);
SQLWritePrivateProfileString(sectionName, INI_UNIQUEINDEX, tmp,
- fileName);
+ fileName);
- sprintf(tmp, "%d", comval->onlyread);
- SQLWritePrivateProfileString(sectionName, INI_READONLY, tmp,
- fileName);
+ sprintf(tmp, "%d", comval->onlyread);
+ SQLWritePrivateProfileString(sectionName, INI_READONLY, tmp,
+ fileName);
}
sprintf(tmp, "%d", comval->use_declarefetch);
* comval->conn_settings, fileName);
*/
}
-#endif /* WIN32 */
+#endif /* WIN32 */
void
WORD wMsg,
WPARAM wParam,
LPARAM lParam);
-#endif /* WIN32 */
+#endif /* WIN32 */
void updateGlobals(void);
void writeDSNinfo(const ConnInfo *ci);
return FALSE;
}
-#endif /* WIN32 */
+#endif /* WIN32 */
void
memset(ci, 0, sizeof(ConnInfo));
#ifdef DRIVER_CURSOR_IMPLEMENT
ci->updatable_cursors = 1;
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
our_connect_string = strdup(connect_string);
strtok_arg = our_connect_string;
mylog("exit EN_Destructor: rv = %d\n", rv);
#ifdef _MEMORY_DEBUG_
debug_memory_inouecheck();
-#endif /* _MEMORY_DEBUG_ */
+#endif /* _MEMORY_DEBUG_ */
return rv;
}
return aReturnLength > 0 ? aReturnLength - 1 : 0;
}
-#endif /* NOT_USED */
+#endif /* NOT_USED */
-#endif /* not WIN32 */
+#endif /* not WIN32 */
}
return ret;
}
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
RETCODE SQL_API
PGAPI_ForeignKeys(
pkt_alloced,
fkt_alloced;
ConnectionClass *conn;
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
int i,
j,
k,
QR_set_field_info(stmt->result, 13, "TRIGGER_NAME", PG_TYPE_TEXT, MAX_INFO_STRING);
#if (ODBCVER >= 0x0300)
QR_set_field_info(stmt->result, 14, "DEFERRABILITY", PG_TYPE_INT2, 2);
-#endif /* ODBCVER >= 0x0300 */
+#endif /* ODBCVER >= 0x0300 */
/*
* also, things need to think that this statement is finished so the
pkey_text = fkey_text = pkt_text = fkt_text = NULL;
pkey_alloced = fkey_alloced = pkt_alloced = fkt_alloced = FALSE;
conn = SC_get_conn(stmt);
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
/*
* Case #2 -- Get the foreign keys in the specified table (fktab) that
pkt_text = getClientTableName(conn, pk_table, &pkt_alloced);
#else
pkt_text = pk_table;
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
/* If there is a pk table specified, then check it. */
if (pk_table_needed[0] != '\0')
{
pkey_text = getClientColumnName(conn, pk_table, pkey_ptr, &pkey_alloced);
#else
pkey_text = pkey_ptr;
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
mylog("%s: pkey_ptr='%s', pkey='%s'\n", func, pkey_text, pkey);
if (strcmp(pkey_text, pkey))
{
#ifdef MULTIBYTE
if (pkey_alloced)
free(pkey_text);
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
/* Get to next primary key */
for (k = 0; k < 2; k++)
pkey_ptr += strlen(pkey_ptr) + 1;
defer_type = SQL_INITIALLY_IMMEDIATE;
else
defer_type = SQL_NOT_DEFERRABLE;
-#endif /* ODBCVER >= 0x0300 */
+#endif /* ODBCVER >= 0x0300 */
/* Get to first primary key */
pkey_ptr = trig_args;
#else
pkey_text = pkey_ptr;
fkey_text = fkey_ptr;
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
mylog("%s: pk_table = '%s', pkey_ptr = '%s'\n", func, pkt_text, pkey_text);
set_tuplefield_null(&row->tuple[0]);
set_tuplefield_string(&row->tuple[1], "");
set_tuplefield_string(&row->tuple[13], trig_args);
#if (ODBCVER >= 0x0300)
set_tuplefield_int2(&row->tuple[14], defer_type);
-#endif /* ODBCVER >= 0x0300 */
+#endif /* ODBCVER >= 0x0300 */
QR_add_tuple(stmt->result, row);
#ifdef MULTIBYTE
if (pkey_alloced)
free(pkey_text);
pkey_alloced = FALSE;
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
/* next primary/foreign key */
for (i = 0; i < 2; i++)
{
if (pkt_alloced)
free(pkt_text);
pkt_alloced = FALSE;
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
result = PGAPI_Fetch(htbl_stmt);
}
defer_type = SQL_INITIALLY_IMMEDIATE;
else
defer_type = SQL_NOT_DEFERRABLE;
-#endif /* ODBCVER >= 0x0300 */
+#endif /* ODBCVER >= 0x0300 */
mylog("Foreign Key Case#1: trig_nargs = %d, num_keys = %d\n", trig_nargs, num_keys);
fkt_text = getClientTableName(conn, fk_table, &fkt_alloced);
#else
fkt_text = fk_table;
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
/* Get to first foreign key */
fkey_ptr = trig_args;
#else
pkey_text = pkey_ptr;
fkey_text = fkey_ptr;
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
mylog("pkey_ptr = '%s', fk_table = '%s', fkey_ptr = '%s'\n", pkey_text, fkt_text, fkey_text);
row = (TupleNode *) malloc(sizeof(TupleNode) + (result_cols - 1) *sizeof(TupleField));
#if (ODBCVER >= 0x0300)
mylog("defer_type = '%s'", defer_type);
set_tuplefield_int2(&row->tuple[14], defer_type);
-#endif /* ODBCVER >= 0x0300 */
+#endif /* ODBCVER >= 0x0300 */
QR_add_tuple(stmt->result, row);
#ifdef MULTIBYTE
if (fkey_alloced)
free(fkey_text);
fkey_alloced = FALSE;
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
/* next primary/foreign key */
for (j = 0; j < 2; j++)
if (fkt_alloced)
free(fkt_text);
fkt_alloced = FALSE;
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
result = PGAPI_Fetch(htbl_stmt);
}
}
free(fkt_text);
if (fkey_alloced)
free(fkey_text);
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
PGAPI_FreeStmt(htbl_stmt, SQL_DROP);
typedef DWORD LPARAM;
typedef void *HWND;
typedef int BOOL;
-#endif /* _UNIX_ */
+#endif /* _UNIX_ */
#if defined(WIN32) || defined(WIN32_SYSTEM)
#define STRLEN(str) ((str)? _fstrlen((char FAR*)(str)):0)
#define STREQ(a, b) (_fstrcmp((char FAR*)(a), (char FAR*)(b) == 0)
#endif
-#endif /* WIN32 */
+#endif /* WIN32 */
#define SYSERR (-1)
SDWORD FAR * pcbValue);
RETCODE SQL_API SQLDataSources(HENV henv,
- UWORD Direction, UCHAR FAR *ServerName,
- WORD BufferLength1, WORD *NameLength1,
- UCHAR FAR *Description, WORD BufferLength2,
- WORD *NameLength2);
+ UWORD Direction, UCHAR FAR * ServerName,
+ WORD BufferLength1, WORD *NameLength1,
+ UCHAR FAR * Description, WORD BufferLength2,
+ WORD *NameLength2);
#ifdef __cplusplus
}
SQLUINTEGER dwLowWord;
SQLINTEGER dwHighWord;
} SQLBIGINT;
-#endif /* GCC */
+#endif /* GCC */
typedef struct tagDATE_STRUCT
{
len = 4;
break;
case SQL_ATTR_AUTO_IPD: /* 10001 */
- /* case SQL_ATTR_ROW_BIND_TYPE: ** == SQL_BIND_TYPE(ODBC2.0) */
+ /* case SQL_ATTR_ROW_BIND_TYPE: ** == SQL_BIND_TYPE(ODBC2.0) */
case SQL_ATTR_PARAMSET_SIZE: /* 22 */
case SQL_ATTR_PARAM_STATUS_PTR: /* 20 */
case SQL_ATTR_PARAMS_PROCESSED_PTR: /* 21 */
case SQL_ATTR_APP_ROW_DESC: /* 10010 */
case SQL_ATTR_APP_PARAM_DESC: /* 10011 */
case SQL_ATTR_AUTO_IPD: /* 10001 */
- /* case SQL_ATTR_ROW_BIND_TYPE: ** == SQL_BIND_TYPE(ODBC2.0) */
+ /* case SQL_ATTR_ROW_BIND_TYPE: ** == SQL_BIND_TYPE(ODBC2.0) */
case SQL_ATTR_IMP_ROW_DESC: /* 10012 */
case SQL_ATTR_IMP_PARAM_DESC: /* 10013 */
case SQL_ATTR_METADATA_ID: /* 10014 */
if ((unsigned char) *ptr >= 0x80)
ptr++;
else
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
*ptr = tolower((unsigned char) *ptr);
}
}
SDWORD crowKeyset,
UWORD crowRowset);
-#endif /* define_PG_API_FUNC_H__ */
+#endif /* define_PG_API_FUNC_H__ */
static Int2
getTimestampScale(StatementClass *stmt, Int4 type, int col)
{
- ConnectionClass *conn = SC_get_conn (stmt);
+ ConnectionClass *conn = SC_get_conn(stmt);
Int4 atttypmod;
QResultClass *result;
ColumnInfoClass *flds;
flds = result->fields;
if (flds)
atttypmod = flds->atttypmod[col];
-mylog("atttypmod1=%d\n", atttypmod);
+ mylog("atttypmod1=%d\n", atttypmod);
}
- else
+ else
atttypmod = QR_get_atttypmod(result, col);
-mylog("atttypmod2=%d\n", atttypmod);
+ mylog("atttypmod2=%d\n", atttypmod);
return (atttypmod > -1 ? atttypmod : 0);
}
static Int4
getTimestampPrecision(StatementClass *stmt, Int4 type, int col)
{
- Int4 fixed, scale;
+ Int4 fixed,
+ scale;
mylog("getTimestampPrecision: type=%d, col=%d\n", type, col);
fixed = 22;
break;
}
- scale = getTimestampScale(stmt, type, col);
- return (scale > 0) ? fixed + 1 + scale : fixed;
+ scale = getTimestampScale(stmt, type, col);
+ return (scale > 0) ? fixed + 1 + scale : fixed;
}
/*
#else
/* CR -> CR/LF */
return 2 * pgtype_precision(stmt, type, col, handle_unknown_size_as);
-#endif /* MULTIBYTE */
+#endif /* MULTIBYTE */
default:
return pgtype_precision(stmt, type, col, handle_unknown_size_as);
}
#define PG_TYPE_VARCHAR 1043
#define PG_TYPE_DATE 1082
#define PG_TYPE_TIME 1083
-#define PG_TYPE_TIMESTAMP_NO_TMZONE 1114 /* since 7.2 */
+#define PG_TYPE_TIMESTAMP_NO_TMZONE 1114 /* since 7.2 */
#define PG_TYPE_DATETIME 1184
-#define PG_TYPE_TIME_WITH_TMZONE 1266 /* since 7.1 */
+#define PG_TYPE_TIME_WITH_TMZONE 1266 /* since 7.1 */
#define PG_TYPE_TIMESTAMP 1296 /* deprecated since 7.0 */
#define PG_TYPE_NUMERIC 1700
{
return TRUE;
}
-#endif /* not __GNUC__ */
-#endif /* not WIN32 */
+#endif /* not __GNUC__ */
+#endif /* not WIN32 */
/*
*
* Comments: See "notice.txt" for copyright and license information.
*
- * $Id: psqlodbc.h,v 1.55 2001/11/05 10:35:14 inoue Exp $
+ * $Id: psqlodbc.h,v 1.56 2001/11/05 17:46:38 momjian Exp $
*
*/
#include /* for FILE* pointers: see GLOBAL_VALUES */
/* Must come before sql.h */
-#ifndef ODBCVER
+#ifndef ODBCVER
#define ODBCVER 0x0250
-#endif /* ODBCVER_REP */
+#endif /* ODBCVER_REP */
#if defined(WIN32) || defined(WITH_UNIXODBC) || defined(WITH_IODBC)
#else
#define DRIVER_ODBC_VER "02.50"
#define DBMS_NAME "PostgreSQL"
-#endif /* ODBCVER */
+#endif /* ODBCVER */
#define POSTGRESDRIVERVERSION "07.01.0009"
#define DRIVER_FILE_NAME "PSQLODBC30.DLL"
#else
#define DRIVER_FILE_NAME "PSQLODBC.DLL"
-#endif /* ODBCVER */
+#endif /* ODBCVER */
#else
#define DRIVER_FILE_NAME "libpsqlodbc.so"
-#endif /* WIN32 */
+#endif /* WIN32 */
/* Limits */
#ifdef WIN32
UInt4 *rowsFetched;
UInt2 *rowStatusArray;
void *bookmark_ptr;
- UInt2 *row_operation_ptr;
- UInt4 *row_offset_ptr;
- UInt4 paramset_size;
- UInt4 param_bind_type;
- UInt4 *param_processed_ptr;
- UInt2 *param_status_ptr;
- UInt2 *param_operation_ptr;
- UInt4 *param_offset_ptr;
+ UInt2 *row_operation_ptr;
+ UInt4 *row_offset_ptr;
+ UInt4 paramset_size;
+ UInt4 param_bind_type;
+ UInt4 *param_processed_ptr;
+ UInt2 *param_status_ptr;
+ UInt2 *param_operation_ptr;
+ UInt4 *param_offset_ptr;
} StatementOptions;
/* Used to pass extra query info to send_query */
#define realloc debug_realloc
#define strdup debug_strdup
#define free debug_free
-#endif /* _MEMORY_DEBUG_ */
+#endif /* _MEMORY_DEBUG_ */
#endif
#define _APS_NEXT_COMMAND_VALUE 40001\r
#define _APS_NEXT_CONTROL_VALUE 1062\r
#define _APS_NEXT_SYMED_VALUE 101\r
-#endif /*\r */
+#endif /*\r */
-#endif /*\r */
+#endif /*\r */
/* this should be refined */
else if (result > 10 && result < 20)
*(rgfRowStatus + i) = result - 10;
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
else
*(rgfRowStatus + i) = SQL_ROW_SUCCESS;
}
/*
* Stuff for updatable cursors end.
*/
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
/*
* This positions the cursor within a rowset, that was positioned using SQLExtendedFetch.
if (stmt->options.scroll_concurrency != SQL_CONCUR_READ_ONLY)
;
else
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
if (fOption != SQL_POSITION && fOption != SQL_REFRESH)
{
stmt->errornumber = STMT_NOT_IMPLEMENTED_ERROR;
case SQL_ADD:
return SC_pos_add(stmt, irow);
}
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
/* Reset for SQLGetData */
for (i = 0; i < num_cols; i++)
bindings[i].data_left = -1;
#ifdef DRIVER_CURSOR_IMPLEMENT
if (stmt->options.cursor_type == SQL_CURSOR_KEYSET_DRIVEN)
SC_pos_reload(stmt, irow, (UWORD *) 0);
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
stmt->currTuple = stmt->rowset_start + irow - 1;
stmt->bind_row = irow;
SC_fetch(stmt);
BOOL fNewDSN; /* New data source flag */
BOOL fDefault; /* Default data source flag */
-} SETUPDLG, FAR * LPSETUPDLG;
+} SETUPDLG, FAR * LPSETUPDLG;
{
int type;
char *s;
-} Statement_Type[] =
+} Statement_Type[] =
{
{
opt->retrieve_data = SQL_RD_ON;
opt->use_bookmarks = SQL_UB_OFF;
opt->paramset_size = 1;
- opt->param_bind_type = 0; /*default is column-wise binding */
+ opt->param_bind_type = 0; /* default is column-wise binding */
}
/* about that here. */
if (self->bindings)
{
- int lf;
+ int lf;
+
for (lf = 0; lf < self->bindings_allocated; lf++)
{
if (self->bindings[lf].ttlbuf != NULL)
#ifdef DRIVER_CURSOR_IMPLEMENT
int updret;
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
Int2 num_cols,
lf;
Oid type;
updret = SQL_ROW_DELETED;
num_cols -= 2;
}
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
if (self->options.retrieve_data == SQL_RD_OFF) /* data isn't required */
#ifdef DRIVER_CURSOR_IMPLEMENT
return updret ? updret + 10 : SQL_SUCCESS;
#else
return SQL_SUCCESS;
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
for (lf = 0; lf < num_cols; lf++)
{
mylog("fetch: cols=%d, lf=%d, self = %u, self->bindings = %u, buffer[] = %u\n", num_cols, lf, self, self->bindings, self->bindings[lf].buffer);
#ifdef DRIVER_CURSOR_IMPLEMENT
if (updret)
result = updret + 10;
-#endif /* DRIVER_CURSOR_IMPLEMENT */
+#endif /* DRIVER_CURSOR_IMPLEMENT */
return result;
}
PL_curcop->cop_line = oldline;
}
#endif
-#endif /* newCONSTSUB */
+#endif /* newCONSTSUB */
-#endif /* _P_P_PORTABILITY_H_ */
+#endif /* _P_P_PORTABILITY_H_ */
#ifndef NO_DIRECT
#define DIRECT_ACCESS 1 /* enables direct access functions */
-#endif /* NO_DIRECT */
+#endif /* NO_DIRECT */
#ifndef NO_LARGE
#define LARGE_OBJECTS 1 /* enables large objects support */
-#endif /* NO_LARGE */
+#endif /* NO_LARGE */
#ifndef NO_DEF_VAR
#define DEFAULT_VARS 1 /* enables default variables use */
-#endif /* NO_DEF_VAR */
+#endif /* NO_DEF_VAR */
#ifdef MS_WIN32
#define NO_SNPRINTF 1
static PyObject *pg_default_port; /* default connection port */
static PyObject *pg_default_user; /* default username */
static PyObject *pg_default_passwd; /* default password */
-#endif /* DEFAULT_VARS */
+#endif /* DEFAULT_VARS */
DL_EXPORT(void) init_pg(void);
int *get_type_array(PGresult *result, int nfields);
int valid; /* validity flag */
PGconn *cnx; /* PostGres connection handle */
PGresult *last_result; /* last result content */
-} pgobject;
+} pgobject;
staticforward PyTypeObject PgType;
int result_type; /* type of previous result */
long current_pos; /* current position in last result */
long num_rows; /* number of (affected) rows */
-} pgqueryobject;
+} pgqueryobject;
staticforward PyTypeObject PgQueryType;
int current_row; /* current selected row */
int max_row; /* number of rows in the result */
int num_fields; /* number of fields in each row */
-} pgsourceobject;
+} pgsourceobject;
staticforward PyTypeObject PgSourceType;
pgobject * pgcnx; /* parent connection object */
Oid lo_oid; /* large object oid */
int lo_fd; /* large object fd */
-} pglargeobject;
+} pglargeobject;
staticforward PyTypeObject PglargeType;
#define is_pglargeobject(v) ((v)->ob_type == &PglargeType)
-#endif /* LARGE_OBJECTS */
+#endif /* LARGE_OBJECTS */
/* --------------------------------------------------------------------- */
/* INTERNAL FUNCTIONS */
return 1;
}
-#endif /* LARGE_OBJECTS */
+#endif /* LARGE_OBJECTS */
/* checks source object validity */
static int
0, /* tp_as_mapping */
0, /* tp_hash */
};
-#endif /* LARGE_OBJECTS */
+#endif /* LARGE_OBJECTS */
/* --------------------------------------------------------------------- */
if ((!pgpasswd) && (pg_default_passwd != Py_None))
pgpasswd = PyString_AsString(pg_default_passwd);
-#endif /* DEFAULT_VARS */
+#endif /* DEFAULT_VARS */
if ((npgobj = (pgobject *) pgobject_New()) == NULL)
return NULL;
Py_INCREF(Py_None);
return Py_None;
}
-#endif /* DIRECT_ACCESS */
+#endif /* DIRECT_ACCESS */
static PyObject *
{"putline", (PyCFunction) pg_putline, 1, pg_putline__doc__},
{"getline", (PyCFunction) pg_getline, 1, pg_getline__doc__},
{"endcopy", (PyCFunction) pg_endcopy, 1, pg_endcopy__doc__},
-#endif /* DIRECT_ACCESS */
+#endif /* DIRECT_ACCESS */
#ifdef LARGE_OBJECTS
{"locreate", (PyCFunction) pg_locreate, 1, pg_locreate__doc__},
{"getlo", (PyCFunction) pg_getlo, 1, pg_getlo__doc__},
{"loimport", (PyCFunction) pg_loimport, 1, pg_loimport__doc__},
-#endif /* LARGE_OBJECTS */
+#endif /* LARGE_OBJECTS */
{NULL, NULL} /* sentinel */
};
return old;
}
-#endif /* DEFAULT_VARS */
+#endif /* DEFAULT_VARS */
/* List of functions defined in the module */
{"get_defuser", pggetdefuser, 1, getdefuser__doc__},
{"set_defuser", pgsetdefuser, 1, setdefuser__doc__},
{"set_defpasswd", pgsetdefpasswd, 1, setdefpasswd__doc__},
-#endif /* DEFAULT_VARS */
+#endif /* DEFAULT_VARS */
{NULL, NULL} /* sentinel */
};
PyDict_SetItemString(dict, "SEEK_SET", PyInt_FromLong(SEEK_SET));
PyDict_SetItemString(dict, "SEEK_CUR", PyInt_FromLong(SEEK_CUR));
PyDict_SetItemString(dict, "SEEK_END", PyInt_FromLong(SEEK_END));
-#endif /* LARGE_OBJECTS */
+#endif /* LARGE_OBJECTS */
#ifdef DEFAULT_VARS
/* prepares default values */
pg_default_user = Py_None;
Py_INCREF(Py_None);
pg_default_passwd = Py_None;
-#endif /* DEFAULT_VARS */
+#endif /* DEFAULT_VARS */
/* Check for errors */
if (PyErr_Occurred())
* ENHANCEMENTS, OR MODIFICATIONS.
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.25 2001/10/25 05:50:17 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.26 2001/11/05 17:46:39 momjian Exp $
*
**********************************************************************/
Oid arg_out_elem[FUNC_MAX_ARGS];
int arg_is_rel[FUNC_MAX_ARGS];
SV *reference;
-} plperl_proc_desc;
+} plperl_proc_desc;
/**********************************************************************
PL_curcop->cop_line = oldline;
}
#endif
-#endif /* newCONSTSUB */
+#endif /* newCONSTSUB */
-#endif /* _P_P_PORTABILITY_H_ */
+#endif /* _P_P_PORTABILITY_H_ */
* procedural language
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/plpgsql.h,v 1.21 2001/10/28 06:26:15 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/plpgsql.h,v 1.22 2001/11/05 17:46:39 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
int alloc;
int used;
char *value;
-} PLpgSQL_dstring;
+} PLpgSQL_dstring;
typedef struct
int16 typlen;
bool typbyval;
int32 atttypmod;
-} PLpgSQL_type;
+} PLpgSQL_type;
typedef struct
{ /* Generic datum array item */
int dtype;
int dno;
-} PLpgSQL_datum;
+} PLpgSQL_datum;
typedef struct
Oid *plan_argtypes;
int nparams;
int params[1];
-} PLpgSQL_expr;
+} PLpgSQL_expr;
typedef struct
Datum value;
bool isnull;
bool freeval;
-} PLpgSQL_var;
+} PLpgSQL_var;
typedef struct
int nfields;
char **fieldnames;
int *varnos;
-} PLpgSQL_row;
+} PLpgSQL_row;
typedef struct
TupleDesc tupdesc;
bool freetup;
bool freetupdesc;
-} PLpgSQL_rec;
+} PLpgSQL_rec;
typedef struct
int rfno;
char *fieldname;
int recno;
-} PLpgSQL_recfield;
+} PLpgSQL_recfield;
typedef struct
int dtype;
int dno;
PLpgSQL_expr *argnum;
-} PLpgSQL_trigarg;
+} PLpgSQL_trigarg;
typedef struct
int itemtype;
int itemno;
char name[1];
-} PLpgSQL_nsitem;
+} PLpgSQL_nsitem;
typedef struct PLpgSQL_ns
int items_used;
PLpgSQL_nsitem **items;
struct PLpgSQL_ns *upper;
-} PLpgSQL_ns;
+} PLpgSQL_ns;
typedef struct
int stmts_alloc;
int stmts_used;
struct PLpgSQL_stmt **stmts;
-} PLpgSQL_stmts;
+} PLpgSQL_stmts;
typedef struct
{ /* Generic execution node */
int cmd_type;
int lineno;
-} PLpgSQL_stmt;
+} PLpgSQL_stmt;
typedef struct
PLpgSQL_stmts *body;
int n_initvars;
int *initvarnos;
-} PLpgSQL_stmt_block;
+} PLpgSQL_stmt_block;
typedef struct
int lineno;
int varno;
PLpgSQL_expr *expr;
-} PLpgSQL_stmt_assign;
+} PLpgSQL_stmt_assign;
typedef struct
{ /* Get Diagnostics item */
int item; /* id for diagnostic value desired */
int target; /* where to assign it */
-} PLpgSQL_diag_item;
+} PLpgSQL_diag_item;
typedef struct
{ /* Get Diagnostics statement */
int lineno;
int ndtitems;
PLpgSQL_diag_item *dtitems;
-} PLpgSQL_stmt_getdiag;
+} PLpgSQL_stmt_getdiag;
typedef struct
PLpgSQL_expr *cond;
PLpgSQL_stmts *true_body;
PLpgSQL_stmts *false_body;
-} PLpgSQL_stmt_if;
+} PLpgSQL_stmt_if;
typedef struct
int lineno;
char *label;
PLpgSQL_stmts *body;
-} PLpgSQL_stmt_loop;
+} PLpgSQL_stmt_loop;
typedef struct
char *label;
PLpgSQL_expr *cond;
PLpgSQL_stmts *body;
-} PLpgSQL_stmt_while;
+} PLpgSQL_stmt_while;
typedef struct
PLpgSQL_expr *upper;
int reverse;
PLpgSQL_stmts *body;
-} PLpgSQL_stmt_fori;
+} PLpgSQL_stmt_fori;
typedef struct
PLpgSQL_row *row;
PLpgSQL_expr *query;
PLpgSQL_stmts *body;
-} PLpgSQL_stmt_fors;
+} PLpgSQL_stmt_fors;
typedef struct
PLpgSQL_row *row;
PLpgSQL_expr *query;
PLpgSQL_stmts *body;
-} PLpgSQL_stmt_dynfors;
+} PLpgSQL_stmt_dynfors;
typedef struct
PLpgSQL_rec *rec;
PLpgSQL_row *row;
PLpgSQL_expr *query;
-} PLpgSQL_stmt_select;
+} PLpgSQL_stmt_select;
typedef struct
PLpgSQL_expr *argquery;
PLpgSQL_expr *query;
PLpgSQL_expr *dynquery;
-} PLpgSQL_stmt_open;
+} PLpgSQL_stmt_open;
typedef struct
PLpgSQL_rec *rec;
PLpgSQL_row *row;
int curvar;
-} PLpgSQL_stmt_fetch;
+} PLpgSQL_stmt_fetch;
typedef struct
int cmd_type;
int lineno;
int curvar;
-} PLpgSQL_stmt_close;
+} PLpgSQL_stmt_close;
typedef struct
int lineno;
char *label;
PLpgSQL_expr *cond;
-} PLpgSQL_stmt_exit;
+} PLpgSQL_stmt_exit;
typedef struct
bool retistuple;
PLpgSQL_expr *expr;
int retrecno;
-} PLpgSQL_stmt_return;
+} PLpgSQL_stmt_return;
typedef struct
char *message;
int nparams;
int *params;
-} PLpgSQL_stmt_raise;
+} PLpgSQL_stmt_raise;
typedef struct
int cmd_type;
int lineno;
PLpgSQL_expr *sqlstmt;
-} PLpgSQL_stmt_execsql;
+} PLpgSQL_stmt_execsql;
typedef struct
int cmd_type;
int lineno;
PLpgSQL_expr *query;
-} PLpgSQL_stmt_dynexecute;
+} PLpgSQL_stmt_dynexecute;
typedef struct PLpgSQL_function
PLpgSQL_stmt_block *action;
struct PLpgSQL_function *next; /* for chaining list of functions */
-} PLpgSQL_function;
+} PLpgSQL_function;
typedef struct
uint32 eval_processed;
Oid eval_lastoid;
ExprContext *eval_econtext;
-} PLpgSQL_execstate;
+} PLpgSQL_execstate;
/**********************************************************************
extern void plpgsql_push_back_token(int token);
extern void plpgsql_setinput(char *s, int functype);
-#endif /* PLPGSQL_H */
+#endif /* PLPGSQL_H */
* MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpython/plpython.c,v 1.11 2001/10/28 06:26:15 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpython/plpython.c,v 1.12 2001/11/05 17:46:39 momjian Exp $
*
*********************************************************************
*/
FmgrInfo typfunc;
Oid typelem;
bool typbyval;
-} PLyDatumToOb;
+} PLyDatumToOb;
typedef struct PLyTupleToOb
{
PLyDatumToOb *atts;
int natts;
-} PLyTupleToOb;
+} PLyTupleToOb;
typedef union PLyTypeInput
{
PLyDatumToOb d;
PLyTupleToOb r;
-} PLyTypeInput;
+} PLyTypeInput;
/* convert PyObject to a Postgresql Datum or tuple.
* output from Python
FmgrInfo typfunc;
Oid typelem;
bool typbyval;
-} PLyObToDatum;
+} PLyObToDatum;
typedef struct PLyObToTuple
{
PLyObToDatum *atts;
int natts;
-} PLyObToTuple;
+} PLyObToTuple;
typedef union PLyTypeOutput
{
PLyObToDatum d;
PLyObToTuple r;
-} PLyTypeOutput;
+} PLyTypeOutput;
/* all we need to move Postgresql data to Python objects,
* and vis versa
PLyTypeInput in;
PLyTypeOutput out;
int is_rel;
-} PLyTypeInfo;
+} PLyTypeInfo;
/* cached procedure data
PyObject *globals; /* data saved across calls, global score */
PyObject *me; /* PyCObject containing pointer to this
* PLyProcedure */
-} PLyProcedure;
+} PLyProcedure;
/* Python objects.
Oid *types;
Datum *values;
PLyTypeInfo *args;
-} PLyPlanObject;
+} PLyPlanObject;
typedef struct PLyResultObject
{
PyObject *nrows; /* number of rows returned by query */
PyObject *rows; /* data rows, or None if no data returned */
PyObject *status; /* query status, SPI_OK_*, or SPI_ERR_* */
-} PLyResultObject;
+} PLyResultObject;
/* function declarations
-/* $Header: /cvsroot/pgsql/src/pl/plpython/Attic/plpython.h,v 1.4 2001/10/28 06:26:15 momjian Exp $ */
+/* $Header: /cvsroot/pgsql/src/pl/plpython/Attic/plpython.h,v 1.5 2001/11/05 17:46:39 momjian Exp $ */
#ifndef PLPYTHON_H
#define PLPYTHON_H
#define refc(O)
#endif
-#endif /* PLPYTHON_H */
+#endif /* PLPYTHON_H */
* ENHANCEMENTS, OR MODIFICATIONS.
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.47 2001/10/25 05:50:21 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.48 2001/11/05 17:46:39 momjian Exp $
*
**********************************************************************/
#define UTF_END
#define UTF_U2E(x) (x)
#define UTF_E2U(x) (x)
-#endif /* PLTCL_UTF */
+#endif /* PLTCL_UTF */
/**********************************************************************
* The information we cache about loaded procedures
FmgrInfo arg_out_func[FUNC_MAX_ARGS];
Oid arg_out_elem[FUNC_MAX_ARGS];
int arg_is_rel[FUNC_MAX_ARGS];
-} pltcl_proc_desc;
+} pltcl_proc_desc;
/**********************************************************************
Oid *argtypelems;
bool *argbyvals;
Datum *argvalues;
-} pltcl_query_desc;
+} pltcl_query_desc;
/**********************************************************************
#ifdef DEBUG
FILE *debug;
-#endif /* DEBUG */
+#endif /* DEBUG */
PGconn *conn;
PGresult *res;
#ifdef DEBUG
debug = fopen("/tmp/trace.out", "w");
PQtrace(conn, debug);
-#endif /* DEBUG */
+#endif /* DEBUG */
/* start a transaction block */
res = PQexec(conn, "BEGIN");
#ifdef DEBUG
fclose(debug);
-#endif /* DEBUG */
+#endif /* DEBUG */
return 0;
}
/*
- * $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.48 2001/08/16 20:38:56 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.49 2001/11/05 17:46:40 momjian Exp $
*/
#include "postgres.h"
{
Point center;
double radius;
-} WIDGET;
+} WIDGET;
WIDGET *widget_in(char *str);
char *widget_out(WIDGET * widget);
cat /tmp/$$
fi
cat /tmp/$$a |
+ sed 's;^/\*\(DATA(.*\)\*/$;\1;' |
+ sed 's;^/\*\(CATALOG(.*\)\*/$;\1;' |
# remove tabs and retab with four spaces
detab -t8 -qc |
entab -t4 -qc |
- sed 's;^/\*\(DATA(.*\)\*/$;\1;' |
- sed 's;^/\*\(CATALOG(.*\)\*/$;\1;' |
sed 's;/\*---X_X;/* ---;g' |
# workaround indent bug
sed 's;^static[ ][ ]*;static ;g' |
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/tutorial/Attic/beard.c,v 1.6 2001/03/22 04:01:45 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/tutorial/Attic/beard.c,v 1.7 2001/11/05 17:46:40 momjian Exp $
*
*-------------------------------------------------------------------------
*/
typedef struct ImageHdr
{
int size;
-} ImageHdr;
+} ImageHdr;
#define BUFSIZE 10
{
double x;
double y;
-} Complex;
+} Complex;
/* These prototypes declare the requirements that Postgres places on these
user written functions.
DECLARE_CYGWIN_DLL(DllMain);
/* save hInstance from DllMain */
HINSTANCE __hDllInstance_base;
-#endif /* __CYGWIN__ */
+#endif /* __CYGWIN__ */
struct _reent *_impure_ptr;
#ifdef __CYGWIN__
__hDllInstance_base = hInst;
-#endif /* __CYGWIN__ */
+#endif /* __CYGWIN__ */
_impure_ptr = __imp_reent_data;
return TRUE;
}
-#endif /* CYGWIN_VERSION_DLL_MAJOR < 1001 */
+#endif /* CYGWIN_VERSION_DLL_MAJOR < 1001 */
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)getopt.c 8.3 (Berkeley) 4/27/95";
-#endif /* LIBC_SCCS and not lint */
+#endif /* LIBC_SCCS and not lint */
#include
#include