Dropped C code used by unsupported PG versions
This commit is contained in:
@ -79,11 +79,9 @@ pgut_init(int argc, char **argv)
|
||||
pthread_mutex_init(&pgut_conn_mutex, NULL);
|
||||
#endif
|
||||
|
||||
#if PG_VERSION_NUM >= 90000
|
||||
/* application_name for 9.0 or newer versions */
|
||||
if (getenv("PGAPPNAME") == NULL)
|
||||
pgut_putenv("PGAPPNAME", PROGRAM_NAME);
|
||||
#endif
|
||||
|
||||
init_cancel_handler();
|
||||
atexit(on_cleanup);
|
||||
|
@ -195,25 +195,6 @@ extern size_t simple_string_list_size(SimpleStringList list);
|
||||
extern int wait_for_socket(int sock, struct timeval *timeout);
|
||||
extern int wait_for_sockets(int nfds, fd_set *fds, struct timeval *timeout);
|
||||
|
||||
/*
|
||||
* import from postgres.h and catalog/genbki.h in 8.4
|
||||
*/
|
||||
#if PG_VERSION_NUM < 80400
|
||||
|
||||
typedef unsigned long Datum;
|
||||
typedef struct MemoryContextData *MemoryContext;
|
||||
|
||||
#define CATALOG(name,oid) typedef struct CppConcat(FormData_,name)
|
||||
#define BKI_BOOTSTRAP
|
||||
#define BKI_SHARED_RELATION
|
||||
#define BKI_WITHOUT_OIDS
|
||||
#define DATA(x) extern int no_such_variable
|
||||
#define DESCR(x) extern int no_such_variable
|
||||
#define SHDESCR(x) extern int no_such_variable
|
||||
typedef int aclitem;
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
extern int sleep(unsigned int seconds);
|
||||
extern int usleep(unsigned int usec);
|
||||
|
Reference in New Issue
Block a user