* Array index references without table name cause problems
* Update table SET table.value = 3 fails
* Creating index of timestamp fails
+* SELECT foo UNION SELECT foo is incorrectly simplified to SELECT foo
VIEWS
places, like GROUP BY, UNIQUE, index processing, etc.
* improve dynamic memory allocation by introducing tuple-context memory
allocation
-* add pooled memory allocation where allocations are freed only as a group
-
+* fix indexscan() so it does leak memory by not requiring caller to free
+* fix memory leak in cache code when non-existant table is refer
SOURCE CODE
-----------
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqcomm.c,v 1.72 1999/05/25 16:09:02 momjian Exp $
+ * $Id: pqcomm.c,v 1.73 1999/07/07 17:17:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
*/
int
-StreamServerPort(char *hostName, short portName, int *fdP)
+StreamServerPort(char *hostName, unsigned short portName, int *fdP)
{
SockAddr saddr;
int fd,
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.107 1999/07/02 18:09:27 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.108 1999/07/07 17:17:48 momjian Exp $
*
* NOTES
*
/* list of ports associated with still open, but incomplete connections */
static Dllist *PortList;
-static short PostPortName = -1;
+static unsigned short PostPortName = 0;
static short ActiveBackends = FALSE;
/*
*/
static void pmdaemonize(void);
static Port *ConnCreate(int serverFd);
-static void reset_shared(short port);
+static void reset_shared(unsigned short port);
static void pmdie(SIGNAL_ARGS);
static void reaper(SIGNAL_ARGS);
static void dumpstatus(SIGNAL_ARGS);
break;
case 'p':
/* Set PGPORT by hand. */
- PostPortName = (short) atoi(optarg);
+ PostPortName = (unsigned short) atoi(optarg);
break;
case 'S':
/*
* Select default values for switches where needed
*/
- if (PostPortName == -1)
- PostPortName = pq_getport();
+ if (PostPortName == 0)
+ PostPortName = (unsigned short)pq_getport();
/*
* Check for invalid combinations of switches
* reset_shared -- reset shared memory and semaphores
*/
static void
-reset_shared(short port)
+reset_shared(unsigned short port)
{
ipc_key = port * 1000 + shmem_seq * 100;
CreateSharedMemoryAndSemaphores(ipc_key, MaxBackends);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpq.h,v 1.30 1999/05/25 22:42:50 momjian Exp $
+ * $Id: libpq.h,v 1.31 1999/07/07 17:17:50 momjian Exp $
*
*-------------------------------------------------------------------------
*/
/*
* prototypes for functions in pqcomm.c
*/
-extern int StreamServerPort(char *hostName, short portName, int *fdP);
+extern int StreamServerPort(char *hostName, unsigned short portName, int *fdP);
extern int StreamConnection(int server_fd, Port *port);
extern void StreamClose(int sock);
extern void pq_init(void);