23 #define DEFAULT_PAGER "more"
25 #define DEFAULT_PAGER "less"
215 const int ncolumns,
const int nrows);
217 char *header,
const bool translate,
const char align);
219 char *cell,
const bool translate,
const bool mustfree);
226 FILE *fout,
bool is_pager, FILE *flog);
228 FILE *fout,
bool is_pager, FILE *flog);
struct printTableContent printTableContent
void printTableInit(printTableContent *const content, const printTableOpt *opt, const char *title, const int ncolumns, const int nrows)
PGDLLIMPORT volatile sig_atomic_t cancel_pressed
void printTableCleanup(printTableContent *const content)
void restore_sigpipe_trap(void)
@ PRINT_XHEADER_EXACT_WIDTH
void printQuery(const PGresult *result, const printQueryOpt *opt, FILE *fout, bool is_pager, FILE *flog)
PGDLLIMPORT printTextFormat pg_utf8format
struct printTableOpt printTableOpt
struct printTextLineFormat printTextLineFormat
struct printTextFormat printTextFormat
void refresh_utf8format(const printTableOpt *opt)
PGDLLIMPORT const printTextFormat pg_asciiformat
void printTableAddCell(printTableContent *const content, char *cell, const bool translate, const bool mustfree)
PGDLLIMPORT const printTextFormat pg_asciiformat_old
void printTableSetFooter(printTableContent *const content, const char *footer)
struct printTableFooter printTableFooter
void ClosePager(FILE *pagerpipe)
@ UNICODE_LINESTYLE_SINGLE
@ UNICODE_LINESTYLE_DOUBLE
void disable_sigpipe_trap(void)
@ PRINT_LINE_WRAP_NEWLINE
FILE * PageOutput(int lines, const printTableOpt *topt)
const printTextFormat * get_line_style(const printTableOpt *opt)
void printTable(const printTableContent *cont, FILE *fout, bool is_pager, FILE *flog)
void html_escaped_print(const char *in, FILE *fout)
struct printQueryOpt printQueryOpt
void printTableAddFooter(printTableContent *const content, const char *footer)
void set_sigpipe_trap_state(bool ignore)
void printTableAddHeader(printTableContent *const content, char *header, const bool translate, const char align)
char column_type_alignment(Oid)
void setDecimalLocale(void)
Datum translate(PG_FUNCTION_ARGS)
const bool * translate_columns
const printTableOpt * opt
printTableFooter * footers
printTableFooter * footer
unsigned short int expanded
unsigned long prior_records
unicode_linestyle unicode_border_linestyle
struct separator fieldSep
int expanded_header_exact_width
struct separator recordSep
printXheaderWidthType expanded_header_width_type
const printTextFormat * line_style
unsigned short int border
unicode_linestyle unicode_header_linestyle
unicode_linestyle unicode_column_linestyle
const char * midvrule_blank
const char * header_nl_left
printTextLineFormat lrule[4]
const char * midvrule_wrap
const char * header_nl_right