Skip to content

Commit 9acc962

Browse files
author
Michael Paquier
committed
Remove outdated functions in pgut
1 parent 9e35dd0 commit 9acc962

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

pgut/pgut.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -882,14 +882,6 @@ prompt_for_password(const char *username)
882882
}
883883
#endif
884884

885-
#if PG_VERSION_NUM < 80300
886-
static bool
887-
PQconnectionNeedsPassword(PGconn *conn)
888-
{
889-
return strcmp(PQerrorMessage(conn), PQnoPasswordSupplied) == 0 && !feof(stdin);
890-
}
891-
#endif
892-
893885
PGconn *
894886
pgut_connect(int elevel)
895887
{

pgut/pgut.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -233,25 +233,6 @@ extern bool parse_time(const char *value, time_t *time);
233233
extern int wait_for_socket(int sock, struct timeval *timeout);
234234
extern int wait_for_sockets(int nfds, fd_set *fds, struct timeval *timeout);
235235

236-
/*
237-
* import from postgres.h and catalog/genbki.h in 8.4
238-
*/
239-
#if PG_VERSION_NUM < 80400
240-
241-
typedef unsigned long Datum;
242-
typedef struct MemoryContextData *MemoryContext;
243-
244-
#define CATALOG(name,oid) typedef struct CppConcat(FormData_,name)
245-
#define BKI_BOOTSTRAP
246-
#define BKI_SHARED_RELATION
247-
#define BKI_WITHOUT_OIDS
248-
#define DATA(x) extern int no_such_variable
249-
#define DESCR(x) extern int no_such_variable
250-
#define SHDESCR(x) extern int no_such_variable
251-
typedef int aclitem;
252-
253-
#endif
254-
255236
#ifdef WIN32
256237
extern int sleep(unsigned int seconds);
257238
extern int usleep(unsigned int usec);

0 commit comments

Comments
 (0)