PostgreSQL Source Code  git master
libpq-fe.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * libpq-fe.h
4  * This file contains definitions for structures and
5  * externs for functions used by frontend postgres applications.
6  *
7  * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/interfaces/libpq/libpq-fe.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 
15 #ifndef LIBPQ_FE_H
16 #define LIBPQ_FE_H
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 #include <stdio.h>
24 
25 /*
26  * postgres_ext.h defines the backend's externally visible types,
27  * such as Oid.
28  */
29 #include "postgres_ext.h"
30 
31 /*
32  * These symbols may be used in compile-time #ifdef tests for the availability
33  * of newer libpq features.
34  */
35 /* Indicates presence of PQenterPipelineMode and friends */
36 #define LIBPQ_HAS_PIPELINING 1
37 /* Indicates presence of PQsetTraceFlags; also new PQtrace output format */
38 #define LIBPQ_HAS_TRACE_FLAGS 1
39 /* Indicates that PQsslAttribute(NULL, "library") is useful */
40 #define LIBPQ_HAS_SSL_LIBRARY_DETECTION 1
41 
42 /*
43  * Option flags for PQcopyResult
44  */
45 #define PG_COPYRES_ATTRS 0x01
46 #define PG_COPYRES_TUPLES 0x02 /* Implies PG_COPYRES_ATTRS */
47 #define PG_COPYRES_EVENTS 0x04
48 #define PG_COPYRES_NOTICEHOOKS 0x08
49 
50 /* Application-visible enum types */
51 
52 /*
53  * Although it is okay to add to these lists, values which become unused
54  * should never be removed, nor should constants be redefined - that would
55  * break compatibility with existing code.
56  */
57 
58 typedef enum
59 {
62  /* Non-blocking mode only below here */
63 
64  /*
65  * The existence of these should never be relied upon - they should only
66  * be used for user feedback or similar purposes.
67  */
68  CONNECTION_STARTED, /* Waiting for connection to be made. */
69  CONNECTION_MADE, /* Connection OK; waiting to send. */
70  CONNECTION_AWAITING_RESPONSE, /* Waiting for a response from the
71  * postmaster. */
72  CONNECTION_AUTH_OK, /* Received authentication; waiting for
73  * backend startup. */
74  CONNECTION_SETENV, /* This state is no longer used. */
75  CONNECTION_SSL_STARTUP, /* Negotiating SSL. */
76  CONNECTION_NEEDED, /* Internal state: connect() needed */
77  CONNECTION_CHECK_WRITABLE, /* Checking if session is read-write. */
78  CONNECTION_CONSUME, /* Consuming any extra messages. */
79  CONNECTION_GSS_STARTUP, /* Negotiating GSSAPI. */
80  CONNECTION_CHECK_TARGET, /* Checking target server properties. */
81  CONNECTION_CHECK_STANDBY /* Checking if server is in standby mode. */
83 
84 typedef enum
85 {
87  PGRES_POLLING_READING, /* These two indicate that one may */
88  PGRES_POLLING_WRITING, /* use select before polling again. */
90  PGRES_POLLING_ACTIVE /* unused; keep for awhile for backwards
91  * compatibility */
93 
94 typedef enum
95 {
96  PGRES_EMPTY_QUERY = 0, /* empty query string was executed */
97  PGRES_COMMAND_OK, /* a query command that doesn't return
98  * anything was executed properly by the
99  * backend */
100  PGRES_TUPLES_OK, /* a query command that returns tuples was
101  * executed properly by the backend, PGresult
102  * contains the result tuples */
103  PGRES_COPY_OUT, /* Copy Out data transfer in progress */
104  PGRES_COPY_IN, /* Copy In data transfer in progress */
105  PGRES_BAD_RESPONSE, /* an unexpected response was recv'd from the
106  * backend */
107  PGRES_NONFATAL_ERROR, /* notice or warning message */
108  PGRES_FATAL_ERROR, /* query failed */
109  PGRES_COPY_BOTH, /* Copy In/Out data transfer in progress */
110  PGRES_SINGLE_TUPLE, /* single tuple from larger resultset */
111  PGRES_PIPELINE_SYNC, /* pipeline synchronization point */
112  PGRES_PIPELINE_ABORTED /* Command didn't run because of an abort
113  * earlier in a pipeline */
115 
116 typedef enum
117 {
118  PQTRANS_IDLE, /* connection idle */
119  PQTRANS_ACTIVE, /* command in progress */
120  PQTRANS_INTRANS, /* idle, within transaction block */
121  PQTRANS_INERROR, /* idle, within failed transaction */
122  PQTRANS_UNKNOWN /* cannot determine status */
124 
125 typedef enum
126 {
127  PQERRORS_TERSE, /* single-line error messages */
128  PQERRORS_DEFAULT, /* recommended style */
129  PQERRORS_VERBOSE, /* all the facts, ma'am */
130  PQERRORS_SQLSTATE /* only error severity and SQLSTATE code */
132 
133 typedef enum
134 {
135  PQSHOW_CONTEXT_NEVER, /* never show CONTEXT field */
136  PQSHOW_CONTEXT_ERRORS, /* show CONTEXT for errors only (default) */
137  PQSHOW_CONTEXT_ALWAYS /* always show CONTEXT field */
139 
140 /*
141  * PGPing - The ordering of this enum should not be altered because the
142  * values are exposed externally via pg_isready.
143  */
144 
145 typedef enum
146 {
147  PQPING_OK, /* server is accepting connections */
148  PQPING_REJECT, /* server is alive but rejecting connections */
149  PQPING_NO_RESPONSE, /* could not establish connection */
150  PQPING_NO_ATTEMPT /* connection not attempted (bad params) */
152 
153 /*
154  * PGpipelineStatus - Current status of pipeline mode
155  */
156 typedef enum
157 {
162 
163 /* PGconn encapsulates a connection to the backend.
164  * The contents of this struct are not supposed to be known to applications.
165  */
166 typedef struct pg_conn PGconn;
167 
168 /* PGresult encapsulates the result of a query (or more precisely, of a single
169  * SQL command --- a query string given to PQsendQuery can contain multiple
170  * commands and thus return multiple PGresult objects).
171  * The contents of this struct are not supposed to be known to applications.
172  */
173 typedef struct pg_result PGresult;
174 
175 /* PGcancel encapsulates the information needed to cancel a running
176  * query on an existing connection.
177  * The contents of this struct are not supposed to be known to applications.
178  */
179 typedef struct pg_cancel PGcancel;
180 
181 /* PGnotify represents the occurrence of a NOTIFY message.
182  * Ideally this would be an opaque typedef, but it's so simple that it's
183  * unlikely to change.
184  * NOTE: in Postgres 6.4 and later, the be_pid is the notifying backend's,
185  * whereas in earlier versions it was always your own backend's PID.
186  */
187 typedef struct pgNotify
188 {
189  char *relname; /* notification condition name */
190  int be_pid; /* process ID of notifying server process */
191  char *extra; /* notification parameter */
192  /* Fields below here are private to libpq; apps should not use 'em */
193  struct pgNotify *next; /* list link */
195 
196 /* Function types for notice-handling callbacks */
197 typedef void (*PQnoticeReceiver) (void *arg, const PGresult *res);
198 typedef void (*PQnoticeProcessor) (void *arg, const char *message);
199 
200 /* Print options for PQprint() */
201 typedef char pqbool;
202 
203 typedef struct _PQprintOpt
204 {
205  pqbool header; /* print output field headings and row count */
206  pqbool align; /* fill align the fields */
207  pqbool standard; /* old brain dead format */
208  pqbool html3; /* output html tables */
209  pqbool expanded; /* expand tables */
210  pqbool pager; /* use pager for output if needed */
211  char *fieldSep; /* field separator */
212  char *tableOpt; /* insert to HTML <table ...> */
213  char *caption; /* HTML <caption> */
214  char **fieldName; /* null terminated array of replacement field
215  * names */
217 
218 /* ----------------
219  * Structure for the conninfo parameter definitions returned by PQconndefaults
220  * or PQconninfoParse.
221  *
222  * All fields except "val" point at static strings which must not be altered.
223  * "val" is either NULL or a malloc'd current-value string. PQconninfoFree()
224  * will release both the val strings and the PQconninfoOption array itself.
225  * ----------------
226  */
227 typedef struct _PQconninfoOption
228 {
229  char *keyword; /* The keyword of the option */
230  char *envvar; /* Fallback environment variable name */
231  char *compiled; /* Fallback compiled in default value */
232  char *val; /* Option's current value, or NULL */
233  char *label; /* Label for field in connect dialog */
234  char *dispchar; /* Indicates how to display this field in a
235  * connect dialog. Values are: "" Display
236  * entered value as is "*" Password field -
237  * hide value "D" Debug option - don't show
238  * by default */
239  int dispsize; /* Field size in characters for dialog */
241 
242 /* ----------------
243  * PQArgBlock -- structure for PQfn() arguments
244  * ----------------
245  */
246 typedef struct
247 {
248  int len;
249  int isint;
250  union
251  {
252  int *ptr; /* can't use void (dec compiler barfs) */
253  int integer;
254  } u;
255 } PQArgBlock;
256 
257 /* ----------------
258  * PGresAttDesc -- Data about a single attribute (column) of a query result
259  * ----------------
260  */
261 typedef struct pgresAttDesc
262 {
263  char *name; /* column name */
264  Oid tableid; /* source table, if known */
265  int columnid; /* source column, if known */
266  int format; /* format code for value (text/binary) */
267  Oid typid; /* type id */
268  int typlen; /* type size */
269  int atttypmod; /* type-specific modifier info */
271 
272 /* ----------------
273  * Exported functions of libpq
274  * ----------------
275  */
276 
277 /* === in fe-connect.c === */
278 
279 /* make a new client connection to the backend */
280 /* Asynchronous (non-blocking) */
281 extern PGconn *PQconnectStart(const char *conninfo);
282 extern PGconn *PQconnectStartParams(const char *const *keywords,
283  const char *const *values, int expand_dbname);
285 
286 /* Synchronous (blocking) */
287 extern PGconn *PQconnectdb(const char *conninfo);
288 extern PGconn *PQconnectdbParams(const char *const *keywords,
289  const char *const *values, int expand_dbname);
290 extern PGconn *PQsetdbLogin(const char *pghost, const char *pgport,
291  const char *pgoptions, const char *pgtty,
292  const char *dbName,
293  const char *login, const char *pwd);
294 
295 #define PQsetdb(M_PGHOST,M_PGPORT,M_PGOPT,M_PGTTY,M_DBNAME) \
296  PQsetdbLogin(M_PGHOST, M_PGPORT, M_PGOPT, M_PGTTY, M_DBNAME, NULL, NULL)
297 
298 /* close the current connection and free the PGconn data structure */
299 extern void PQfinish(PGconn *conn);
300 
301 /* get info about connection options known to PQconnectdb */
302 extern PQconninfoOption *PQconndefaults(void);
303 
304 /* parse connection options in same way as PQconnectdb */
305 extern PQconninfoOption *PQconninfoParse(const char *conninfo, char **errmsg);
306 
307 /* return the connection options used by a live connection */
309 
310 /* free the data structure returned by PQconndefaults() or PQconninfoParse() */
311 extern void PQconninfoFree(PQconninfoOption *connOptions);
312 
313 /*
314  * close the current connection and reestablish a new one with the same
315  * parameters
316  */
317 /* Asynchronous (non-blocking) */
318 extern int PQresetStart(PGconn *conn);
320 
321 /* Synchronous (blocking) */
322 extern void PQreset(PGconn *conn);
323 
324 /* request a cancel structure */
325 extern PGcancel *PQgetCancel(PGconn *conn);
326 
327 /* free a cancel structure */
328 extern void PQfreeCancel(PGcancel *cancel);
329 
330 /* issue a cancel request */
331 extern int PQcancel(PGcancel *cancel, char *errbuf, int errbufsize);
332 
333 /* backwards compatible version of PQcancel; not thread-safe */
334 extern int PQrequestCancel(PGconn *conn);
335 
336 /* Accessor functions for PGconn objects */
337 extern char *PQdb(const PGconn *conn);
338 extern char *PQuser(const PGconn *conn);
339 extern char *PQpass(const PGconn *conn);
340 extern char *PQhost(const PGconn *conn);
341 extern char *PQhostaddr(const PGconn *conn);
342 extern char *PQport(const PGconn *conn);
343 extern char *PQtty(const PGconn *conn);
344 extern char *PQoptions(const PGconn *conn);
345 extern ConnStatusType PQstatus(const PGconn *conn);
347 extern const char *PQparameterStatus(const PGconn *conn,
348  const char *paramName);
349 extern int PQprotocolVersion(const PGconn *conn);
350 extern int PQserverVersion(const PGconn *conn);
351 extern char *PQerrorMessage(const PGconn *conn);
352 extern int PQsocket(const PGconn *conn);
353 extern int PQbackendPID(const PGconn *conn);
355 extern int PQconnectionNeedsPassword(const PGconn *conn);
356 extern int PQconnectionUsedPassword(const PGconn *conn);
357 extern int PQclientEncoding(const PGconn *conn);
358 extern int PQsetClientEncoding(PGconn *conn, const char *encoding);
359 
360 /* SSL information functions */
361 extern int PQsslInUse(PGconn *conn);
362 extern void *PQsslStruct(PGconn *conn, const char *struct_name);
363 extern const char *PQsslAttribute(PGconn *conn, const char *attribute_name);
364 extern const char *const *PQsslAttributeNames(PGconn *conn);
365 
366 /* Get the OpenSSL structure associated with a connection. Returns NULL for
367  * unencrypted connections or if any other TLS library is in use. */
368 extern void *PQgetssl(PGconn *conn);
369 
370 /* Tell libpq whether it needs to initialize OpenSSL */
371 extern void PQinitSSL(int do_init);
372 
373 /* More detailed way to tell libpq whether it needs to initialize OpenSSL */
374 extern void PQinitOpenSSL(int do_ssl, int do_crypto);
375 
376 /* Return true if GSSAPI encryption is in use */
377 extern int PQgssEncInUse(PGconn *conn);
378 
379 /* Returns GSSAPI context if GSSAPI is in use */
380 extern void *PQgetgssctx(PGconn *conn);
381 
382 /* Set verbosity for PQerrorMessage and PQresultErrorMessage */
384 
385 /* Set CONTEXT visibility for PQerrorMessage and PQresultErrorMessage */
387  PGContextVisibility show_context);
388 
389 /* Override default notice handling routines */
391  PQnoticeReceiver proc,
392  void *arg);
394  PQnoticeProcessor proc,
395  void *arg);
396 
397 /*
398  * Used to set callback that prevents concurrent access to
399  * non-thread safe functions that libpq needs.
400  * The default implementation uses a libpq internal mutex.
401  * Only required for multithreaded apps that use kerberos
402  * both within their app and for postgresql connections.
403  */
404 typedef void (*pgthreadlock_t) (int acquire);
405 
407 
408 /* === in fe-trace.c === */
409 extern void PQtrace(PGconn *conn, FILE *debug_port);
410 extern void PQuntrace(PGconn *conn);
411 
412 /* flags controlling trace output: */
413 /* omit timestamps from each line */
414 #define PQTRACE_SUPPRESS_TIMESTAMPS (1<<0)
415 /* redact portions of some messages, for testing frameworks */
416 #define PQTRACE_REGRESS_MODE (1<<1)
417 extern void PQsetTraceFlags(PGconn *conn, int flags);
418 
419 /* === in fe-exec.c === */
420 
421 /* Simple synchronous query */
422 extern PGresult *PQexec(PGconn *conn, const char *query);
424  const char *command,
425  int nParams,
426  const Oid *paramTypes,
427  const char *const *paramValues,
428  const int *paramLengths,
429  const int *paramFormats,
430  int resultFormat);
431 extern PGresult *PQprepare(PGconn *conn, const char *stmtName,
432  const char *query, int nParams,
433  const Oid *paramTypes);
435  const char *stmtName,
436  int nParams,
437  const char *const *paramValues,
438  const int *paramLengths,
439  const int *paramFormats,
440  int resultFormat);
441 
442 /* Interface for multiple-result or asynchronous queries */
443 #define PQ_QUERY_PARAM_MAX_LIMIT 65535
444 
445 extern int PQsendQuery(PGconn *conn, const char *query);
446 extern int PQsendQueryParams(PGconn *conn,
447  const char *command,
448  int nParams,
449  const Oid *paramTypes,
450  const char *const *paramValues,
451  const int *paramLengths,
452  const int *paramFormats,
453  int resultFormat);
454 extern int PQsendPrepare(PGconn *conn, const char *stmtName,
455  const char *query, int nParams,
456  const Oid *paramTypes);
457 extern int PQsendQueryPrepared(PGconn *conn,
458  const char *stmtName,
459  int nParams,
460  const char *const *paramValues,
461  const int *paramLengths,
462  const int *paramFormats,
463  int resultFormat);
464 extern int PQsetSingleRowMode(PGconn *conn);
465 extern PGresult *PQgetResult(PGconn *conn);
466 
467 /* Routines for managing an asynchronous query */
468 extern int PQisBusy(PGconn *conn);
469 extern int PQconsumeInput(PGconn *conn);
470 
471 /* Routines for pipeline mode management */
472 extern int PQenterPipelineMode(PGconn *conn);
473 extern int PQexitPipelineMode(PGconn *conn);
474 extern int PQpipelineSync(PGconn *conn);
475 extern int PQsendFlushRequest(PGconn *conn);
476 
477 /* LISTEN/NOTIFY support */
478 extern PGnotify *PQnotifies(PGconn *conn);
479 
480 /* Routines for copy in/out */
481 extern int PQputCopyData(PGconn *conn, const char *buffer, int nbytes);
482 extern int PQputCopyEnd(PGconn *conn, const char *errormsg);
483 extern int PQgetCopyData(PGconn *conn, char **buffer, int async);
484 
485 /* Deprecated routines for copy in/out */
486 extern int PQgetline(PGconn *conn, char *string, int length);
487 extern int PQputline(PGconn *conn, const char *string);
488 extern int PQgetlineAsync(PGconn *conn, char *buffer, int bufsize);
489 extern int PQputnbytes(PGconn *conn, const char *buffer, int nbytes);
490 extern int PQendcopy(PGconn *conn);
491 
492 /* Set blocking/nonblocking connection to the backend */
493 extern int PQsetnonblocking(PGconn *conn, int arg);
494 extern int PQisnonblocking(const PGconn *conn);
495 extern int PQisthreadsafe(void);
496 extern PGPing PQping(const char *conninfo);
497 extern PGPing PQpingParams(const char *const *keywords,
498  const char *const *values, int expand_dbname);
499 
500 /* Force the write buffer to be written (or at least try) */
501 extern int PQflush(PGconn *conn);
502 
503 /*
504  * "Fast path" interface --- not really recommended for application
505  * use
506  */
507 extern PGresult *PQfn(PGconn *conn,
508  int fnid,
509  int *result_buf,
510  int *result_len,
511  int result_is_int,
512  const PQArgBlock *args,
513  int nargs);
514 
515 /* Accessor functions for PGresult objects */
517 extern char *PQresStatus(ExecStatusType status);
518 extern char *PQresultErrorMessage(const PGresult *res);
519 extern char *PQresultVerboseErrorMessage(const PGresult *res,
520  PGVerbosity verbosity,
521  PGContextVisibility show_context);
522 extern char *PQresultErrorField(const PGresult *res, int fieldcode);
523 extern int PQntuples(const PGresult *res);
524 extern int PQnfields(const PGresult *res);
525 extern int PQbinaryTuples(const PGresult *res);
526 extern char *PQfname(const PGresult *res, int field_num);
527 extern int PQfnumber(const PGresult *res, const char *field_name);
528 extern Oid PQftable(const PGresult *res, int field_num);
529 extern int PQftablecol(const PGresult *res, int field_num);
530 extern int PQfformat(const PGresult *res, int field_num);
531 extern Oid PQftype(const PGresult *res, int field_num);
532 extern int PQfsize(const PGresult *res, int field_num);
533 extern int PQfmod(const PGresult *res, int field_num);
534 extern char *PQcmdStatus(PGresult *res);
535 extern char *PQoidStatus(const PGresult *res); /* old and ugly */
536 extern Oid PQoidValue(const PGresult *res); /* new and improved */
537 extern char *PQcmdTuples(PGresult *res);
538 extern char *PQgetvalue(const PGresult *res, int tup_num, int field_num);
539 extern int PQgetlength(const PGresult *res, int tup_num, int field_num);
540 extern int PQgetisnull(const PGresult *res, int tup_num, int field_num);
541 extern int PQnparams(const PGresult *res);
542 extern Oid PQparamtype(const PGresult *res, int param_num);
543 
544 /* Describe prepared statements and portals */
545 extern PGresult *PQdescribePrepared(PGconn *conn, const char *stmt);
546 extern PGresult *PQdescribePortal(PGconn *conn, const char *portal);
547 extern int PQsendDescribePrepared(PGconn *conn, const char *stmt);
548 extern int PQsendDescribePortal(PGconn *conn, const char *portal);
549 
550 /* Delete a PGresult */
551 extern void PQclear(PGresult *res);
552 
553 /* For freeing other alloc'd results, such as PGnotify structs */
554 extern void PQfreemem(void *ptr);
555 
556 /* Exists for backward compatibility. bjm 2003-03-24 */
557 #define PQfreeNotify(ptr) PQfreemem(ptr)
558 
559 /* Error when no password was given. */
560 /* Note: depending on this is deprecated; use PQconnectionNeedsPassword(). */
561 #define PQnoPasswordSupplied "fe_sendauth: no password supplied\n"
562 
563 /* Create and manipulate PGresults */
565 extern PGresult *PQcopyResult(const PGresult *src, int flags);
566 extern int PQsetResultAttrs(PGresult *res, int numAttributes, PGresAttDesc *attDescs);
567 extern void *PQresultAlloc(PGresult *res, size_t nBytes);
568 extern size_t PQresultMemorySize(const PGresult *res);
569 extern int PQsetvalue(PGresult *res, int tup_num, int field_num, char *value, int len);
570 
571 /* Quoting strings before inclusion in queries. */
572 extern size_t PQescapeStringConn(PGconn *conn,
573  char *to, const char *from, size_t length,
574  int *error);
575 extern char *PQescapeLiteral(PGconn *conn, const char *str, size_t len);
576 extern char *PQescapeIdentifier(PGconn *conn, const char *str, size_t len);
577 extern unsigned char *PQescapeByteaConn(PGconn *conn,
578  const unsigned char *from, size_t from_length,
579  size_t *to_length);
580 extern unsigned char *PQunescapeBytea(const unsigned char *strtext,
581  size_t *retbuflen);
582 
583 /* These forms are deprecated! */
584 extern size_t PQescapeString(char *to, const char *from, size_t length);
585 extern unsigned char *PQescapeBytea(const unsigned char *from, size_t from_length,
586  size_t *to_length);
587 
588 
589 
590 /* === in fe-print.c === */
591 
592 extern void PQprint(FILE *fout, /* output stream */
593  const PGresult *res,
594  const PQprintOpt *ps); /* option structure */
595 
596 /*
597  * really old printing routines
598  */
599 extern void PQdisplayTuples(const PGresult *res,
600  FILE *fp, /* where to send the output */
601  int fillAlign, /* pad the fields with spaces */
602  const char *fieldSep, /* field separator */
603  int printHeader, /* display headers? */
604  int quiet);
605 
606 extern void PQprintTuples(const PGresult *res,
607  FILE *fout, /* output stream */
608  int PrintAttNames, /* print attribute names */
609  int TerseOutput, /* delimiter bars */
610  int colWidth); /* width of column, if 0, use
611  * variable width */
612 
613 
614 /* === in fe-lobj.c === */
615 
616 /* Large-object access routines */
617 extern int lo_open(PGconn *conn, Oid lobjId, int mode);
618 extern int lo_close(PGconn *conn, int fd);
619 extern int lo_read(PGconn *conn, int fd, char *buf, size_t len);
620 extern int lo_write(PGconn *conn, int fd, const char *buf, size_t len);
621 extern int lo_lseek(PGconn *conn, int fd, int offset, int whence);
622 extern pg_int64 lo_lseek64(PGconn *conn, int fd, pg_int64 offset, int whence);
623 extern Oid lo_creat(PGconn *conn, int mode);
624 extern Oid lo_create(PGconn *conn, Oid lobjId);
625 extern int lo_tell(PGconn *conn, int fd);
626 extern pg_int64 lo_tell64(PGconn *conn, int fd);
627 extern int lo_truncate(PGconn *conn, int fd, size_t len);
628 extern int lo_truncate64(PGconn *conn, int fd, pg_int64 len);
629 extern int lo_unlink(PGconn *conn, Oid lobjId);
630 extern Oid lo_import(PGconn *conn, const char *filename);
631 extern Oid lo_import_with_oid(PGconn *conn, const char *filename, Oid lobjId);
632 extern int lo_export(PGconn *conn, Oid lobjId, const char *filename);
633 
634 /* === in fe-misc.c === */
635 
636 /* Get the version of the libpq library in use */
637 extern int PQlibVersion(void);
638 
639 /* Determine length of multibyte encoded char at *s */
640 extern int PQmblen(const char *s, int encoding);
641 
642 /* Same, but not more than the distance to the end of string s */
643 extern int PQmblenBounded(const char *s, int encoding);
644 
645 /* Determine display length of multibyte encoded char at *s */
646 extern int PQdsplen(const char *s, int encoding);
647 
648 /* Get encoding id from environment variable PGCLIENTENCODING */
649 extern int PQenv2encoding(void);
650 
651 /* === in fe-auth.c === */
652 
653 extern char *PQencryptPassword(const char *passwd, const char *user);
654 extern char *PQencryptPasswordConn(PGconn *conn, const char *passwd, const char *user, const char *algorithm);
655 
656 /* === in encnames.c === */
657 
658 extern int pg_char_to_encoding(const char *name);
659 extern const char *pg_encoding_to_char(int encoding);
660 extern int pg_valid_server_encoding_id(int encoding);
661 
662 /* === in fe-secure-openssl.c === */
663 
664 /* Support for overriding sslpassword handling with a callback */
665 typedef int (*PQsslKeyPassHook_OpenSSL_type) (char *buf, int size, PGconn *conn);
668 extern int PQdefaultSSLKeyPassHook_OpenSSL(char *buf, int size, PGconn *conn);
669 
670 #ifdef __cplusplus
671 }
672 #endif
673 
674 #endif /* LIBPQ_FE_H */
static Datum values[MAXATTR]
Definition: bootstrap.c:156
int errmsg(const char *fmt,...)
Definition: elog.c:904
const char * name
Definition: encode.c:561
static struct @151 value
ConnStatusType
Definition: libpq-fe.h:59
@ CONNECTION_CONSUME
Definition: libpq-fe.h:78
@ CONNECTION_CHECK_STANDBY
Definition: libpq-fe.h:81
@ CONNECTION_STARTED
Definition: libpq-fe.h:68
@ CONNECTION_AWAITING_RESPONSE
Definition: libpq-fe.h:70
@ CONNECTION_MADE
Definition: libpq-fe.h:69
@ CONNECTION_CHECK_WRITABLE
Definition: libpq-fe.h:77
@ CONNECTION_BAD
Definition: libpq-fe.h:61
@ CONNECTION_OK
Definition: libpq-fe.h:60
@ CONNECTION_GSS_STARTUP
Definition: libpq-fe.h:79
@ CONNECTION_SSL_STARTUP
Definition: libpq-fe.h:75
@ CONNECTION_AUTH_OK
Definition: libpq-fe.h:72
@ CONNECTION_CHECK_TARGET
Definition: libpq-fe.h:80
@ CONNECTION_NEEDED
Definition: libpq-fe.h:76
@ CONNECTION_SETENV
Definition: libpq-fe.h:74
const char * PQparameterStatus(const PGconn *conn, const char *paramName)
Definition: fe-connect.c:6873
int PQserverVersion(const PGconn *conn)
Definition: fe-connect.c:6898
int PQprotocolVersion(const PGconn *conn)
Definition: fe-connect.c:6888
char pqbool
Definition: libpq-fe.h:201
PQconninfoOption * PQconninfoParse(const char *conninfo, char **errmsg)
Definition: fe-connect.c:5501
unsigned char * PQescapeBytea(const unsigned char *from, size_t from_length, size_t *to_length)
Definition: fe-exec.c:4332
PGresult * PQfn(PGconn *conn, int fnid, int *result_buf, int *result_len, int result_is_int, const PQArgBlock *args, int nargs)
Definition: fe-exec.c:2916
int PQresetStart(PGconn *conn)
Definition: fe-connect.c:4308
int PQsendQueryParams(PGconn *conn, const char *command, int nParams, const Oid *paramTypes, const char *const *paramValues, const int *paramLengths, const int *paramFormats, int resultFormat)
Definition: fe-exec.c:1536
int PQgetlength(const PGresult *res, int tup_num, int field_num)
Definition: fe-exec.c:3746
PGcancel * PQgetCancel(PGconn *conn)
Definition: fe-connect.c:4366
int PQsetSingleRowMode(PGconn *conn)
Definition: fe-exec.c:1976
int PQbinaryTuples(const PGresult *res)
Definition: fe-exec.c:3356
int PQflush(PGconn *conn)
Definition: fe-exec.c:3861
void PQfreemem(void *ptr)
Definition: fe-exec.c:3891
PGconn * PQconnectStartParams(const char *const *keywords, const char *const *values, int expand_dbname)
Definition: fe-connect.c:760
void PQdisplayTuples(const PGresult *res, FILE *fp, int fillAlign, const char *fieldSep, int printHeader, int quiet)
Definition: fe-print.c:591
PGnotify * PQnotifies(PGconn *conn)
Definition: fe-exec.c:2599
PGresult * PQprepare(PGconn *conn, const char *stmtName, const char *query, int nParams, const Oid *paramTypes)
Definition: fe-exec.c:2317
unsigned char * PQunescapeBytea(const unsigned char *strtext, size_t *retbuflen)
Definition: fe-exec.c:4357
ExecStatusType
Definition: libpq-fe.h:95
@ PGRES_COPY_IN
Definition: libpq-fe.h:104
@ PGRES_COPY_BOTH
Definition: libpq-fe.h:109
@ PGRES_COMMAND_OK
Definition: libpq-fe.h:97
@ PGRES_FATAL_ERROR
Definition: libpq-fe.h:108
@ PGRES_SINGLE_TUPLE
Definition: libpq-fe.h:110
@ PGRES_COPY_OUT
Definition: libpq-fe.h:103
@ PGRES_EMPTY_QUERY
Definition: libpq-fe.h:96
@ PGRES_PIPELINE_SYNC
Definition: libpq-fe.h:111
@ PGRES_BAD_RESPONSE
Definition: libpq-fe.h:105
@ PGRES_PIPELINE_ABORTED
Definition: libpq-fe.h:112
@ PGRES_NONFATAL_ERROR
Definition: libpq-fe.h:107
@ PGRES_TUPLES_OK
Definition: libpq-fe.h:100
void PQinitSSL(int do_init)
Definition: fe-secure.c:139
Oid PQftype(const PGresult *res, int field_num)
Definition: fe-exec.c:3578
void(* pgthreadlock_t)(int acquire)
Definition: libpq-fe.h:404
int lo_tell(PGconn *conn, int fd)
Definition: fe-lobj.c:522
int PQexitPipelineMode(PGconn *conn)
Definition: fe-exec.c:3012
char * PQhost(const PGconn *conn)
Definition: fe-connect.c:6787
PGPing
Definition: libpq-fe.h:146
@ PQPING_OK
Definition: libpq-fe.h:147
@ PQPING_REJECT
Definition: libpq-fe.h:148
@ PQPING_NO_RESPONSE
Definition: libpq-fe.h:149
@ PQPING_NO_ATTEMPT
Definition: libpq-fe.h:150
int PQsetResultAttrs(PGresult *res, int numAttributes, PGresAttDesc *attDescs)
Definition: fe-exec.c:246
PGContextVisibility
Definition: libpq-fe.h:134
@ PQSHOW_CONTEXT_NEVER
Definition: libpq-fe.h:135
@ PQSHOW_CONTEXT_ALWAYS
Definition: libpq-fe.h:137
@ PQSHOW_CONTEXT_ERRORS
Definition: libpq-fe.h:136
int lo_close(PGconn *conn, int fd)
Definition: fe-lobj.c:96
struct _PQconninfoOption PQconninfoOption
pg_int64 lo_tell64(PGconn *conn, int fd)
Definition: fe-lobj.c:555
int PQenv2encoding(void)
Definition: fe-misc.c:1214
PGconn * PQconnectStart(const char *conninfo)
Definition: fe-connect.c:841
PQsslKeyPassHook_OpenSSL_type PQgetSSLKeyPassHook_OpenSSL(void)
PGconn * PQconnectdbParams(const char *const *keywords, const char *const *values, int expand_dbname)
Definition: fe-connect.c:658
char * PQdb(const PGconn *conn)
Definition: fe-connect.c:6754
char * PQescapeIdentifier(PGconn *conn, const char *str, size_t len)
Definition: fe-exec.c:4172
void PQreset(PGconn *conn)
Definition: fe-connect.c:4275
int PQenterPipelineMode(PGconn *conn)
Definition: fe-exec.c:2980
void PQprint(FILE *fout, const PGresult *res, const PQprintOpt *ps)
Definition: fe-print.c:68
size_t PQescapeStringConn(PGconn *conn, char *to, const char *from, size_t length, int *error)
Definition: fe-exec.c:4005
void PQtrace(PGconn *conn, FILE *debug_port)
Definition: fe-trace.c:35
PGTransactionStatusType PQtransactionStatus(const PGconn *conn)
Definition: fe-connect.c:6863
PGTransactionStatusType
Definition: libpq-fe.h:117
@ PQTRANS_INTRANS
Definition: libpq-fe.h:120
@ PQTRANS_IDLE
Definition: libpq-fe.h:118
@ PQTRANS_ACTIVE
Definition: libpq-fe.h:119
@ PQTRANS_UNKNOWN
Definition: libpq-fe.h:122
@ PQTRANS_INERROR
Definition: libpq-fe.h:121
PGresult * PQexecParams(PGconn *conn, const char *command, int nParams, const Oid *paramTypes, const char *const *paramValues, const int *paramLengths, const int *paramFormats, int resultFormat)
Definition: fe-exec.c:2287
ExecStatusType PQresultStatus(const PGresult *res)
Definition: fe-exec.c:3270
Oid PQparamtype(const PGresult *res, int param_num)
Definition: fe-exec.c:3785
PGresult * PQdescribePrepared(PGconn *conn, const char *stmt)
Definition: fe-exec.c:2469
int PQnparams(const PGresult *res)
Definition: fe-exec.c:3774
int PQdefaultSSLKeyPassHook_OpenSSL(char *buf, int size, PGconn *conn)
char * PQencryptPassword(const char *passwd, const char *user)
Definition: fe-auth.c:1187
int pg_char_to_encoding(const char *name)
Definition: encnames.c:550
void PQprintTuples(const PGresult *res, FILE *fout, int PrintAttNames, int TerseOutput, int colWidth)
Definition: fe-print.c:689
void PQclear(PGresult *res)
Definition: fe-exec.c:718
char * PQcmdTuples(PGresult *res)
Definition: fe-exec.c:3681
char * PQresultErrorMessage(const PGresult *res)
Definition: fe-exec.c:3286
PQconninfoOption * PQconndefaults(void)
Definition: fe-connect.c:1477
int PQgetline(PGconn *conn, char *string, int length)
Definition: fe-exec.c:2790
struct _PQprintOpt PQprintOpt
int PQconnectionUsedPassword(const PGconn *conn)
Definition: fe-connect.c:6974
int PQfformat(const PGresult *res, int field_num)
Definition: fe-exec.c:3567
void(* PQnoticeReceiver)(void *arg, const PGresult *res)
Definition: libpq-fe.h:197
int PQlibVersion(void)
Definition: fe-misc.c:66
char * PQtty(const PGconn *conn)
Definition: fe-connect.c:6839
void(* PQnoticeProcessor)(void *arg, const char *message)
Definition: libpq-fe.h:198
char * PQhostaddr(const PGconn *conn)
Definition: fe-connect.c:6810
int PQendcopy(PGconn *conn)
Definition: fe-exec.c:2885
int PQgssEncInUse(PGconn *conn)
PostgresPollingStatusType PQconnectPoll(PGconn *conn)
Definition: fe-connect.c:2262
int PQputCopyEnd(PGconn *conn, const char *errormsg)
Definition: fe-exec.c:2683
void PQconninfoFree(PQconninfoOption *connOptions)
Definition: fe-connect.c:6736
Oid lo_creat(PGconn *conn, int mode)
Definition: fe-lobj.c:444
int(* PQsslKeyPassHook_OpenSSL_type)(char *buf, int size, PGconn *conn)
Definition: libpq-fe.h:665
int lo_read(PGconn *conn, int fd, char *buf, size_t len)
Definition: fe-lobj.c:248
int lo_lseek(PGconn *conn, int fd, int offset, int whence)
Definition: fe-lobj.c:349
int PQntuples(const PGresult *res)
Definition: fe-exec.c:3340
int PQputnbytes(PGconn *conn, const char *buffer, int nbytes)
Definition: fe-exec.c:2864
pg_int64 lo_lseek64(PGconn *conn, int fd, pg_int64 offset, int whence)
Definition: fe-lobj.c:390
int pg_valid_server_encoding_id(int encoding)
Definition: encnames.c:514
int PQmblen(const char *s, int encoding)
Definition: fe-misc.c:1185
int PQputline(PGconn *conn, const char *string)
Definition: fe-exec.c:2854
int PQgetlineAsync(PGconn *conn, char *buffer, int bufsize)
Definition: fe-exec.c:2837
int lo_open(PGconn *conn, Oid lobjId, int mode)
Definition: fe-lobj.c:57
PostgresPollingStatusType
Definition: libpq-fe.h:85
@ PGRES_POLLING_ACTIVE
Definition: libpq-fe.h:90
@ PGRES_POLLING_OK
Definition: libpq-fe.h:89
@ PGRES_POLLING_READING
Definition: libpq-fe.h:87
@ PGRES_POLLING_WRITING
Definition: libpq-fe.h:88
@ PGRES_POLLING_FAILED
Definition: libpq-fe.h:86
int PQputCopyData(PGconn *conn, const char *buffer, int nbytes)
Definition: fe-exec.c:2627
PGresult * PQexecPrepared(PGconn *conn, const char *stmtName, int nParams, const char *const *paramValues, const int *paramLengths, const int *paramFormats, int resultFormat)
Definition: fe-exec.c:2334
PQconninfoOption * PQconninfo(PGconn *conn)
Definition: fe-connect.c:6692
int lo_write(PGconn *conn, int fd, const char *buf, size_t len)
Definition: fe-lobj.c:299
int PQisthreadsafe(void)
Definition: fe-exec.c:3849
char * PQfname(const PGresult *res, int field_num)
Definition: fe-exec.c:3426
int PQconnectionNeedsPassword(const PGconn *conn)
Definition: fe-connect.c:6959
void PQinitOpenSSL(int do_ssl, int do_crypto)
Definition: fe-secure.c:151
char * PQescapeLiteral(PGconn *conn, const char *str, size_t len)
Definition: fe-exec.c:4166
int lo_truncate(PGconn *conn, int fd, size_t len)
Definition: fe-lobj.c:131
PGresult * PQdescribePortal(PGconn *conn, const char *portal)
Definition: fe-exec.c:2488
int PQsendDescribePrepared(PGconn *conn, const char *stmt)
Definition: fe-exec.c:2505
PGresult * PQmakeEmptyPGresult(PGconn *conn, ExecStatusType status)
Definition: fe-exec.c:157
Oid lo_create(PGconn *conn, Oid lobjId)
Definition: fe-lobj.c:480
PGresult * PQexec(PGconn *conn, const char *query)
Definition: fe-exec.c:2273
unsigned char * PQescapeByteaConn(PGconn *conn, const unsigned char *from, size_t from_length, size_t *to_length)
Definition: fe-exec.c:4316
PostgresPollingStatusType PQresetPoll(PGconn *conn)
Definition: fe-connect.c:4327
int PQsslInUse(PGconn *conn)
Definition: fe-secure.c:127
size_t PQescapeString(char *to, const char *from, size_t length)
Definition: fe-exec.c:4027
int PQconsumeInput(PGconn *conn)
Definition: fe-exec.c:2004
char * PQerrorMessage(const PGconn *conn)
Definition: fe-connect.c:6908
int PQcancel(PGcancel *cancel, char *errbuf, int errbufsize)
Definition: fe-connect.c:4481
char * PQgetvalue(const PGresult *res, int tup_num, int field_num)
Definition: fe-exec.c:3735
struct pgNotify PGnotify
ConnStatusType PQstatus(const PGconn *conn)
Definition: fe-connect.c:6855
Oid PQftable(const PGresult *res, int field_num)
Definition: fe-exec.c:3545
int PQfnumber(const PGresult *res, const char *field_name)
Definition: fe-exec.c:3448
char * PQcmdStatus(PGresult *res)
Definition: fe-exec.c:3611
int PQsetnonblocking(PGconn *conn, int arg)
Definition: fe-exec.c:3803
int PQclientEncoding(const PGconn *conn)
Definition: fe-connect.c:6985
const char *const * PQsslAttributeNames(PGconn *conn)
PGconn * PQsetdbLogin(const char *pghost, const char *pgport, const char *pgoptions, const char *pgtty, const char *dbName, const char *login, const char *pwd)
Definition: fe-connect.c:1515
void PQfinish(PGconn *conn)
Definition: fe-connect.c:4261
PGPing PQping(const char *conninfo)
Definition: fe-connect.c:729
int PQsendPrepare(PGconn *conn, const char *stmtName, const char *query, int nParams, const Oid *paramTypes)
Definition: fe-exec.c:1582
PGconn * PQconnectdb(const char *conninfo)
Definition: fe-connect.c:713
int PQfmod(const PGresult *res, int field_num)
Definition: fe-exec.c:3600
PGContextVisibility PQsetErrorContextVisibility(PGconn *conn, PGContextVisibility show_context)
Definition: fe-connect.c:7047
PGpipelineStatus
Definition: libpq-fe.h:157
@ PQ_PIPELINE_OFF
Definition: libpq-fe.h:158
@ PQ_PIPELINE_ABORTED
Definition: libpq-fe.h:160
@ PQ_PIPELINE_ON
Definition: libpq-fe.h:159
int PQdsplen(const char *s, int encoding)
Definition: fe-misc.c:1205
int PQgetisnull(const PGresult *res, int tup_num, int field_num)
Definition: fe-exec.c:3760
char * PQuser(const PGconn *conn)
Definition: fe-connect.c:6762
int PQftablecol(const PGresult *res, int field_num)
Definition: fe-exec.c:3556
void * PQgetssl(PGconn *conn)
int PQsetvalue(PGresult *res, int tup_num, int field_num, char *value, int len)
Definition: fe-exec.c:449
void * PQsslStruct(PGconn *conn, const char *struct_name)
char * PQpass(const PGconn *conn)
Definition: fe-connect.c:6770
int PQsendQuery(PGconn *conn, const char *query)
Definition: fe-exec.c:1424
int PQpipelineSync(PGconn *conn)
Definition: fe-exec.c:3169
char * PQresStatus(ExecStatusType status)
Definition: fe-exec.c:3278
PQnoticeReceiver PQsetNoticeReceiver(PGconn *conn, PQnoticeReceiver proc, void *arg)
Definition: fe-connect.c:7059
int PQsendDescribePortal(PGconn *conn, const char *portal)
Definition: fe-exec.c:2518
void PQsetTraceFlags(PGconn *conn, int flags)
Definition: fe-trace.c:64
size_t PQresultMemorySize(const PGresult *res)
Definition: fe-exec.c:660
int PQbackendPID(const PGconn *conn)
Definition: fe-connect.c:6942
int PQisBusy(PGconn *conn)
Definition: fe-exec.c:2051
int PQsendQueryPrepared(PGconn *conn, const char *stmtName, int nParams, const char *const *paramValues, const int *paramLengths, const int *paramFormats, int resultFormat)
Definition: fe-exec.c:1682
PGVerbosity
Definition: libpq-fe.h:126
@ PQERRORS_VERBOSE
Definition: libpq-fe.h:129
@ PQERRORS_DEFAULT
Definition: libpq-fe.h:128
@ PQERRORS_TERSE
Definition: libpq-fe.h:127
@ PQERRORS_SQLSTATE
Definition: libpq-fe.h:130
void * PQgetgssctx(PGconn *conn)
int PQsendFlushRequest(PGconn *conn)
Definition: fe-exec.c:3236
int PQrequestCancel(PGconn *conn)
Definition: fe-connect.c:4680
char * PQencryptPasswordConn(PGconn *conn, const char *passwd, const char *user, const char *algorithm)
Definition: fe-auth.c:1230
void PQfreeCancel(PGcancel *cancel)
Definition: fe-connect.c:4434
char * PQoidStatus(const PGresult *res)
Definition: fe-exec.c:3624
char * PQresultErrorField(const PGresult *res, int fieldcode)
Definition: fe-exec.c:3325
char * PQport(const PGconn *conn)
Definition: fe-connect.c:6823
PGpipelineStatus PQpipelineStatus(const PGconn *conn)
Definition: fe-connect.c:6950
int lo_unlink(PGconn *conn, Oid lobjId)
Definition: fe-lobj.c:597
int PQisnonblocking(const PGconn *conn)
Definition: fe-exec.c:3842
void PQuntrace(PGconn *conn)
Definition: fe-trace.c:49
PGresult * PQcopyResult(const PGresult *src, int flags)
Definition: fe-exec.c:315
PGVerbosity PQsetErrorVerbosity(PGconn *conn, PGVerbosity verbosity)
Definition: fe-connect.c:7035
PQnoticeProcessor PQsetNoticeProcessor(PGconn *conn, PQnoticeProcessor proc, void *arg)
Definition: fe-connect.c:7076
void * PQresultAlloc(PGresult *res, size_t nBytes)
Definition: fe-exec.c:540
Oid lo_import(PGconn *conn, const char *filename)
Definition: fe-lobj.c:634
Oid PQoidValue(const PGresult *res)
Definition: fe-exec.c:3652
int PQmblenBounded(const char *s, int encoding)
Definition: fe-misc.c:1195
const char * PQsslAttribute(PGconn *conn, const char *attribute_name)
const char * pg_encoding_to_char(int encoding)
Definition: encnames.c:588
int lo_export(PGconn *conn, Oid lobjId, const char *filename)
Definition: fe-lobj.c:758
char * PQresultVerboseErrorMessage(const PGresult *res, PGVerbosity verbosity, PGContextVisibility show_context)
Definition: fe-exec.c:3294
int PQnfields(const PGresult *res)
Definition: fe-exec.c:3348
Oid lo_import_with_oid(PGconn *conn, const char *filename, Oid lobjId)
Definition: fe-lobj.c:649
void PQsetSSLKeyPassHook_OpenSSL(PQsslKeyPassHook_OpenSSL_type hook)
PGPing PQpingParams(const char *const *keywords, const char *const *values, int expand_dbname)
Definition: fe-connect.c:676
int PQsocket(const PGconn *conn)
Definition: fe-connect.c:6934
char * PQoptions(const PGconn *conn)
Definition: fe-connect.c:6847
PGresult * PQgetResult(PGconn *conn)
Definition: fe-exec.c:2082
int PQfsize(const PGresult *res, int field_num)
Definition: fe-exec.c:3589
int lo_truncate64(PGconn *conn, int fd, pg_int64 len)
Definition: fe-lobj.c:197
int PQsetClientEncoding(PGconn *conn, const char *encoding)
Definition: fe-connect.c:6993
struct pgresAttDesc PGresAttDesc
pgthreadlock_t PQregisterThreadLock(pgthreadlock_t newhandler)
Definition: fe-connect.c:7473
int PQgetCopyData(PGconn *conn, char **buffer, int async)
Definition: fe-exec.c:2751
void * arg
static PgChecksumMode mode
Definition: pg_checksums.c:65
const void size_t len
static void do_init(void)
Definition: pg_ctl.c:901
int32 encoding
Definition: pg_database.h:41
static char * filename
Definition: pg_dumpall.c:94
static char * user
Definition: pg_regress.c:95
static void static void status(const char *fmt,...) pg_attribute_printf(1
Definition: pg_regress.c:229
static char * buf
Definition: pg_test_fsync.c:67
const char * pghost
Definition: pgbench.c:307
const char * pgport
Definition: pgbench.c:308
const char * dbName
Definition: pgbench.c:310
PG_INT64_TYPE pg_int64
Definition: postgres_ext.h:47
unsigned int Oid
Definition: postgres_ext.h:31
static int fd(const char *x, int i)
Definition: preproc-init.c:105
static void error(void)
Definition: sql-dyntest.c:147
PGconn * conn
Definition: streamutil.c:54
int isint
Definition: libpq-fe.h:249
int * ptr
Definition: libpq-fe.h:252
int integer
Definition: libpq-fe.h:253
pqbool align
Definition: libpq-fe.h:206
pqbool pager
Definition: libpq-fe.h:210
pqbool standard
Definition: libpq-fe.h:207
pqbool html3
Definition: libpq-fe.h:208
char * caption
Definition: libpq-fe.h:213
pqbool header
Definition: libpq-fe.h:205
pqbool expanded
Definition: libpq-fe.h:209
char * fieldSep
Definition: libpq-fe.h:211
char ** fieldName
Definition: libpq-fe.h:214
char * tableOpt
Definition: libpq-fe.h:212
struct pgNotify * next
Definition: libpq-fe.h:193
int be_pid
Definition: libpq-fe.h:190
char * relname
Definition: libpq-fe.h:189
char * extra
Definition: libpq-fe.h:191
char * name
Definition: libpq-fe.h:263
int columnid
Definition: libpq-fe.h:265
int atttypmod
Definition: libpq-fe.h:269