PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include <limits.h>
#include <math.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include "catalog/pg_type_d.h"
#include "fe_utils/mbprint.h"
#include "fe_utils/print.h"
Go to the source code of this file.
Data Structures | |
struct | unicodeStyleRowFormat |
struct | unicodeStyleColumnFormat |
struct | unicodeStyleBorderFormat |
struct | unicodeStyleFormat |
Macros | |
#define | LONGTABLE_WHITESPACE " \t\n" |
Typedefs | |
typedef struct unicodeStyleRowFormat | unicodeStyleRowFormat |
typedef struct unicodeStyleColumnFormat | unicodeStyleColumnFormat |
typedef struct unicodeStyleBorderFormat | unicodeStyleBorderFormat |
typedef struct unicodeStyleFormat | unicodeStyleFormat |
Functions | |
static int | strlen_max_width (unsigned char *str, int *target_width, int encoding) |
static void | IsPagerNeeded (const printTableContent *cont, int extra_lines, bool expanded, FILE **fout, bool *is_pager) |
static void | print_aligned_vertical (const printTableContent *cont, FILE *fout, bool is_pager) |
static int | integer_digits (const char *my_str) |
static int | additional_numeric_locale_len (const char *my_str) |
static char * | format_numeric_locale (const char *my_str) |
static void | print_separator (struct separator sep, FILE *fout) |
static printTableFooter * | footers_with_default (const printTableContent *cont) |
static void | print_unaligned_text (const printTableContent *cont, FILE *fout) |
static void | print_unaligned_vertical (const printTableContent *cont, FILE *fout) |
static void | _print_horizontal_line (const unsigned int ncolumns, const unsigned int *widths, unsigned short border, printTextRule pos, const printTextFormat *format, FILE *fout) |
static void | print_aligned_text (const printTableContent *cont, FILE *fout, bool is_pager) |
static void | print_aligned_vertical_line (const printTableOpt *topt, unsigned long record, unsigned int hwidth, unsigned int dwidth, int output_columns, printTextRule pos, FILE *fout) |
static void | csv_escaped_print (const char *str, FILE *fout) |
static void | csv_print_field (const char *str, FILE *fout, char sep) |
static void | print_csv_text (const printTableContent *cont, FILE *fout) |
static void | print_csv_vertical (const printTableContent *cont, FILE *fout) |
void | html_escaped_print (const char *in, FILE *fout) |
static void | print_html_text (const printTableContent *cont, FILE *fout) |
static void | print_html_vertical (const printTableContent *cont, FILE *fout) |
static void | asciidoc_escaped_print (const char *in, FILE *fout) |
static void | print_asciidoc_text (const printTableContent *cont, FILE *fout) |
static void | print_asciidoc_vertical (const printTableContent *cont, FILE *fout) |
static void | latex_escaped_print (const char *in, FILE *fout) |
static void | print_latex_text (const printTableContent *cont, FILE *fout) |
static void | print_latex_longtable_text (const printTableContent *cont, FILE *fout) |
static void | print_latex_vertical (const printTableContent *cont, FILE *fout) |
static void | troff_ms_escaped_print (const char *in, FILE *fout) |
static void | print_troff_ms_text (const printTableContent *cont, FILE *fout) |
static void | print_troff_ms_vertical (const printTableContent *cont, FILE *fout) |
void | disable_sigpipe_trap (void) |
void | restore_sigpipe_trap (void) |
void | set_sigpipe_trap_state (bool ignore) |
FILE * | PageOutput (int lines, const printTableOpt *topt) |
void | ClosePager (FILE *pagerpipe) |
void | printTableInit (printTableContent *const content, const printTableOpt *opt, const char *title, const int ncolumns, const int nrows) |
void | printTableAddHeader (printTableContent *const content, char *header, const bool translate, const char align) |
void | printTableAddCell (printTableContent *const content, char *cell, const bool translate, const bool mustfree) |
void | printTableAddFooter (printTableContent *const content, const char *footer) |
void | printTableSetFooter (printTableContent *const content, const char *footer) |
void | printTableCleanup (printTableContent *const content) |
void | printTable (const printTableContent *cont, FILE *fout, bool is_pager, FILE *flog) |
void | printQuery (const PGresult *result, const printQueryOpt *opt, FILE *fout, bool is_pager, FILE *flog) |
char | column_type_alignment (Oid ftype) |
void | setDecimalLocale (void) |
const printTextFormat * | get_line_style (const printTableOpt *opt) |
void | refresh_utf8format (const printTableOpt *opt) |
Variables | |
volatile sig_atomic_t | cancel_pressed = false |
static bool | always_ignore_sigpipe = false |
static char * | decimal_point |
static int | groupdigits |
static char * | thousands_sep |
static char | default_footer [100] |
static printTableFooter | default_footer_cell = {default_footer, NULL} |
const printTextFormat | pg_asciiformat |
const printTextFormat | pg_asciiformat_old |
printTextFormat | pg_utf8format |
static const unicodeStyleFormat | unicode_style |
#define LONGTABLE_WHITESPACE " \t\n" |
typedef struct unicodeStyleBorderFormat unicodeStyleBorderFormat |
typedef struct unicodeStyleColumnFormat unicodeStyleColumnFormat |
typedef struct unicodeStyleFormat unicodeStyleFormat |
typedef struct unicodeStyleRowFormat unicodeStyleRowFormat |
|
static |
Definition at line 593 of file print.c.
References format, fprintf, printTextLineFormat::hrule, i, j, printTextLineFormat::leftvrule, printTextLineFormat::midvrule, and printTextLineFormat::rightvrule.
Referenced by print_aligned_text().
|
static |
Definition at line 289 of file print.c.
References decimal_point, groupdigits, integer_digits(), len, and thousands_sep.
Referenced by format_numeric_locale().
|
static |
Definition at line 2168 of file print.c.
Referenced by print_asciidoc_text(), and print_asciidoc_vertical().
void ClosePager | ( | FILE * | pagerpipe | ) |
Definition at line 3141 of file print.c.
References _, cancel_pressed, fprintf, restore_sigpipe_trap(), and generate_unaccent_rules::stdout.
Referenced by exec_command_sf_sv(), ExecQueryAndProcessResults(), print_aligned_text(), print_aligned_vertical(), printHistory(), printTable(), slashUsage(), and usage().
char column_type_alignment | ( | Oid | ftype | ) |
|
static |
|
static |
Definition at line 1855 of file print.c.
References csv_escaped_print(), and str.
Referenced by print_csv_text(), and print_csv_vertical().
void disable_sigpipe_trap | ( | void | ) |
Definition at line 3039 of file print.c.
References pqsignal(), SIG_IGN, and SIGPIPE.
Referenced by do_copy(), do_watch(), exec_command_write(), PageOutput(), and SetupGOutput().
|
static |
Definition at line 398 of file print.c.
References default_footer, printTableOpt::default_footer, default_footer_cell, printTableContent::footers, ngettext, printTableContent::nrows, printTableContent::opt, printTableOpt::prior_records, and snprintf.
Referenced by print_aligned_text(), print_aligned_vertical(), print_asciidoc_text(), print_html_text(), print_latex_text(), print_troff_ms_text(), and print_unaligned_text().
|
static |
Definition at line 314 of file print.c.
References additional_numeric_locale_len(), Assert, decimal_point, groupdigits, i, integer_digits(), pg_malloc(), pg_strdup(), and thousands_sep.
Referenced by printQuery().
const printTextFormat* get_line_style | ( | const printTableOpt * | opt | ) |
Definition at line 3677 of file print.c.
References printTableOpt::line_style, and pg_asciiformat.
Referenced by print_aligned_text(), print_aligned_vertical(), print_aligned_vertical_line(), printPsetInfo(), and pset_value_string().
void html_escaped_print | ( | const char * | in, |
FILE * | fout | ||
) |
Definition at line 1952 of file print.c.
Referenced by print_html_text(), print_html_vertical(), and PrintQueryStatus().
|
static |
Definition at line 278 of file print.c.
Referenced by additional_numeric_locale_len(), and format_numeric_locale().
|
static |
Definition at line 3403 of file print.c.
References printTableContent::footers, if(), printTableContent::ncolumns, printTableFooter::next, printTableContent::nrows, printTableContent::opt, PageOutput(), generate_unaccent_rules::stdout, and printTableOpt::tuples_only.
Referenced by print_aligned_text(), print_aligned_vertical(), and printTable().
|
static |
Definition at line 2392 of file print.c.
Referenced by print_latex_longtable_text(), print_latex_text(), and print_latex_vertical().
FILE* PageOutput | ( | int | lines, |
const printTableOpt * | topt | ||
) |
Definition at line 3089 of file print.c.
References DEFAULT_PAGER, disable_sigpipe_trap(), fflush(), printTableOpt::pager, printTableOpt::pager_min_lines, restore_sigpipe_trap(), and generate_unaccent_rules::stdout.
Referenced by exec_command_sf_sv(), ExecQueryAndProcessResults(), IsPagerNeeded(), print_aligned_text(), printHistory(), slashUsage(), and usage().
|
static |
Definition at line 635 of file print.c.
References _print_horizontal_line(), printTableContent::aligns, printTableOpt::border, cancel_pressed, printTableContent::cells, cleanup(), ClosePager(), printTableOpt::columns, printTableFooter::data, encoding, printTableOpt::encoding, printTableOpt::env_columns, printTableOpt::expanded, footers_with_default(), format, printTableOpt::format, fprintf, free, get_line_style(), printTableContent::headers, i, IsPagerNeeded(), j, printTextLineFormat::leftvrule, printTextLineFormat::midvrule, printTableContent::ncolumns, printTableFooter::next, printTableContent::opt, PageOutput(), pg_malloc(), pg_malloc0(), pg_wcsformat(), pg_wcssize(), print_aligned_vertical(), PRINT_LINE_WRAP_NEWLINE, PRINT_LINE_WRAP_NONE, PRINT_LINE_WRAP_WRAP, PRINT_RULE_BOTTOM, PRINT_RULE_DATA, PRINT_RULE_MIDDLE, PRINT_RULE_TOP, PRINT_WRAPPED, lineptr::ptr, printTextLineFormat::rightvrule, printTableOpt::start_table, generate_unaccent_rules::stdout, printTableOpt::stop_table, strlen_max_width(), printTableContent::title, printTableOpt::tuples_only, and lineptr::width.
Referenced by printTable().
|
static |
Definition at line 1324 of file print.c.
References printTableOpt::border, cancel_pressed, printTableContent::cells, ClosePager(), printTableOpt::columns, printTableFooter::data, encoding, printTableOpt::encoding, printTableOpt::env_columns, printTableContent::footers, footers_with_default(), format, printTableOpt::format, fprintf, free, get_line_style(), printTableContent::headers, i, IsPagerNeeded(), printTextLineFormat::leftvrule, printTextLineFormat::midvrule, printTableContent::ncolumns, printTableFooter::next, printTableContent::nrows, printTableContent::opt, pg_asciiformat_old, pg_malloc(), pg_wcsformat(), pg_wcssize(), print_aligned_vertical_line(), PRINT_RULE_BOTTOM, PRINT_RULE_DATA, PRINT_RULE_MIDDLE, PRINT_RULE_TOP, PRINT_WRAPPED, printTableOpt::prior_records, lineptr::ptr, printTextLineFormat::rightvrule, printTableOpt::start_table, generate_unaccent_rules::stdout, printTableOpt::stop_table, strlen_max_width(), printTableContent::title, printTableOpt::tuples_only, and lineptr::width.
Referenced by print_aligned_text(), and printTable().
|
static |
Definition at line 1225 of file print.c.
References printTableOpt::border, printTableOpt::expanded_header_exact_width, printTableOpt::expanded_header_width_type, fprintf, get_line_style(), printTextLineFormat::hrule, i, printTextLineFormat::leftvrule, printTextFormat::lrule, Max, printTextLineFormat::midvrule, Min, PRINT_XHEADER_COLUMN, PRINT_XHEADER_EXACT_WIDTH, PRINT_XHEADER_PAGE, and printTextLineFormat::rightvrule.
Referenced by print_aligned_vertical().
|
static |
Definition at line 2186 of file print.c.
References printTableContent::aligns, asciidoc_escaped_print(), printTableOpt::border, cancel_pressed, printTableContent::cells, printTableFooter::data, footers_with_default(), fprintf, printTableContent::headers, i, printTableContent::ncolumns, printTableFooter::next, printTableContent::opt, printTableOpt::start_table, printTableOpt::stop_table, printTableContent::title, and printTableOpt::tuples_only.
Referenced by printTable().
|
static |
Definition at line 2296 of file print.c.
References printTableContent::aligns, asciidoc_escaped_print(), printTableOpt::border, cancel_pressed, printTableContent::cells, printTableFooter::data, printTableContent::footers, fprintf, printTableContent::headers, i, printTableContent::ncolumns, printTableFooter::next, printTableContent::opt, printTableOpt::prior_records, printTableOpt::start_table, printTableOpt::stop_table, printTableContent::title, and printTableOpt::tuples_only.
Referenced by printTable().
|
static |
Definition at line 1880 of file print.c.
References cancel_pressed, printTableContent::cells, csv_print_field(), printTableOpt::csvFieldSep, printTableContent::headers, i, printTableContent::ncolumns, printTableContent::opt, printTableOpt::start_table, and printTableOpt::tuples_only.
Referenced by printTable().
|
static |
Definition at line 1920 of file print.c.
References cancel_pressed, printTableContent::cells, csv_print_field(), printTableOpt::csvFieldSep, printTableContent::headers, i, printTableContent::ncolumns, and printTableContent::opt.
Referenced by printTable().
|
static |
Definition at line 1993 of file print.c.
References printTableContent::aligns, printTableOpt::border, cancel_pressed, printTableContent::cells, printTableFooter::data, footers_with_default(), fprintf, printTableContent::headers, html_escaped_print(), i, printTableContent::ncolumns, printTableFooter::next, printTableContent::opt, printTableOpt::start_table, printTableOpt::stop_table, printTableOpt::tableAttr, printTableContent::title, and printTableOpt::tuples_only.
Referenced by printTable().
|
static |
Definition at line 2082 of file print.c.
References printTableContent::aligns, printTableOpt::border, cancel_pressed, printTableContent::cells, printTableFooter::data, printTableContent::footers, fprintf, printTableContent::headers, html_escaped_print(), i, printTableContent::ncolumns, printTableFooter::next, printTableContent::opt, printTableOpt::prior_records, printTableOpt::start_table, printTableOpt::stop_table, printTableOpt::tableAttr, printTableContent::title, and printTableOpt::tuples_only.
Referenced by printTable().
|
static |
Definition at line 2561 of file print.c.
References printTableContent::aligns, printTableOpt::border, cancel_pressed, printTableContent::cells, printTableContent::headers, i, latex_escaped_print(), LONGTABLE_WHITESPACE, printTableContent::ncolumns, printTableContent::opt, printTableOpt::start_table, printTableOpt::stop_table, printTableOpt::tableAttr, printTableContent::title, and printTableOpt::tuples_only.
Referenced by printTable().
|
static |
Definition at line 2454 of file print.c.
References printTableContent::aligns, printTableOpt::border, cancel_pressed, printTableContent::cells, printTableFooter::data, footers_with_default(), printTableContent::headers, i, latex_escaped_print(), printTableContent::ncolumns, printTableFooter::next, printTableContent::opt, printTableOpt::start_table, printTableOpt::stop_table, printTableContent::title, and printTableOpt::tuples_only.
Referenced by printTable().
|
static |
Definition at line 2717 of file print.c.
References printTableOpt::border, cancel_pressed, printTableContent::cells, printTableFooter::data, printTableContent::footers, fprintf, printTableContent::headers, i, latex_escaped_print(), printTableContent::ncolumns, printTableFooter::next, printTableContent::opt, printTableOpt::prior_records, printTableOpt::start_table, printTableOpt::stop_table, printTableContent::title, and printTableOpt::tuples_only.
Referenced by printTable().
|
static |
Definition at line 379 of file print.c.
References separator::separator, and separator::separator_zero.
Referenced by print_unaligned_text(), and print_unaligned_vertical().
|
static |
Definition at line 2827 of file print.c.
References printTableContent::aligns, printTableOpt::border, cancel_pressed, printTableContent::cells, printTableFooter::data, footers_with_default(), printTableContent::headers, i, printTableContent::ncolumns, printTableFooter::next, printTableContent::opt, printTableOpt::start_table, printTableOpt::stop_table, printTableContent::title, troff_ms_escaped_print(), and printTableOpt::tuples_only.
Referenced by printTable().
|
static |
Definition at line 2919 of file print.c.
References printTableOpt::border, cancel_pressed, printTableContent::cells, printTableFooter::data, printTableContent::footers, fprintf, printTableContent::headers, i, printTableContent::ncolumns, printTableFooter::next, printTableContent::opt, printTableOpt::prior_records, printTableOpt::start_table, printTableOpt::stop_table, printTableContent::title, troff_ms_escaped_print(), and printTableOpt::tuples_only.
Referenced by printTable().
|
static |
Definition at line 422 of file print.c.
References cancel_pressed, printTableContent::cells, printTableFooter::data, printTableOpt::fieldSep, footers_with_default(), printTableContent::headers, i, printTableContent::ncolumns, printTableFooter::next, printTableContent::opt, print_separator(), printTableOpt::recordSep, separator::separator_zero, printTableOpt::start_table, printTableOpt::stop_table, printTableContent::title, and printTableOpt::tuples_only.
Referenced by printTable().
|
static |
Definition at line 513 of file print.c.
References cancel_pressed, printTableContent::cells, printTableFooter::data, printTableOpt::fieldSep, printTableContent::footers, printTableContent::headers, i, printTableContent::ncolumns, printTableFooter::next, printTableContent::opt, print_separator(), printTableOpt::recordSep, separator::separator_zero, printTableOpt::start_table, printTableOpt::stop_table, printTableContent::title, and printTableOpt::tuples_only.
Referenced by printTable().
void printQuery | ( | const PGresult * | result, |
const printQueryOpt * | opt, | ||
FILE * | fout, | ||
bool | is_pager, | ||
FILE * | flog | ||
) |
Definition at line 3549 of file print.c.
References printTableContent::aligns, Assert, cancel_pressed, column_type_alignment(), printQueryOpt::footers, format_numeric_locale(), i, printQueryOpt::n_translate_columns, printTableContent::ncolumns, printTableContent::nrows, printQueryOpt::nullPrint, printTableOpt::numericLocale, PQfname(), PQftype(), PQgetisnull(), PQgetvalue(), PQnfields(), PQntuples(), printTable(), printTableAddCell(), printTableAddFooter(), printTableAddHeader(), printTableCleanup(), printTableInit(), printQueryOpt::title, printQueryOpt::topt, translate(), printQueryOpt::translate_columns, and printQueryOpt::translate_header.
Referenced by describeAccessMethods(), describeAggregates(), describeConfigurationParameters(), describeFunctions(), describeOneTableDetails(), describeOneTSConfig(), describeOneTSParser(), describeOperators(), describeRoleGrants(), describeSubscriptions(), describeTablespaces(), describeTypes(), ExecQueryAndProcessResults(), listAllDbs(), listCasts(), listCollations(), listConversions(), listDbRoleSettings(), listDefaultACLs(), listDomains(), listEventTriggers(), listExtendedStats(), listExtensions(), listForeignDataWrappers(), listForeignServers(), listForeignTables(), listLanguages(), listLargeObjects(), listOneExtensionContents(), listOperatorClasses(), listOperatorFamilies(), listOpFamilyFunctions(), listOpFamilyOperators(), listPartitionedTables(), listPublications(), listSchemas(), listTables(), listTSConfigs(), listTSDictionaries(), listTSParsers(), listTSTemplates(), listUserMappings(), objectDescription(), permissionsList(), and PrintQueryTuples().
void printTable | ( | const printTableContent * | cont, |
FILE * | fout, | ||
bool | is_pager, | ||
FILE * | flog | ||
) |
Definition at line 3443 of file print.c.
References _, cancel_pressed, ClosePager(), exit(), EXIT_FAILURE, printTableOpt::expanded, printTableOpt::format, fprintf, IsPagerNeeded(), printTableContent::opt, PRINT_ALIGNED, print_aligned_text(), print_aligned_vertical(), PRINT_ASCIIDOC, print_asciidoc_text(), print_asciidoc_vertical(), PRINT_CSV, print_csv_text(), print_csv_vertical(), PRINT_HTML, print_html_text(), print_html_vertical(), PRINT_LATEX, PRINT_LATEX_LONGTABLE, print_latex_longtable_text(), print_latex_text(), print_latex_vertical(), PRINT_NOTHING, PRINT_TROFF_MS, print_troff_ms_text(), print_troff_ms_vertical(), PRINT_UNALIGNED, print_unaligned_text(), print_unaligned_vertical(), and PRINT_WRAPPED.
Referenced by describeOneTableDetails(), describePublications(), describeRoles(), printCrosstab(), and printQuery().
void printTableAddCell | ( | printTableContent *const | content, |
char * | cell, | ||
const bool | translate, | ||
const bool | mustfree | ||
) |
Definition at line 3260 of file print.c.
References _, printTableContent::cell, printTableContent::cellmustfree, printTableContent::cellsadded, printTableOpt::encoding, exit(), EXIT_FAILURE, fprintf, if(), mbvalidate(), printTableContent::ncolumns, printTableContent::nrows, printTableContent::opt, pg_malloc0(), and translate().
Referenced by describeOneTableDetails(), describePublications(), describeRoles(), and printQuery().
void printTableAddFooter | ( | printTableContent *const | content, |
const char * | footer | ||
) |
Definition at line 3310 of file print.c.
References printTableFooter::data, printTableContent::footer, printTableContent::footers, printTableFooter::next, pg_malloc0(), and pg_strdup().
Referenced by add_tablespace_footer(), addFooterToPublicationDesc(), describeOneTableDetails(), printQuery(), and printTableSetFooter().
void printTableAddHeader | ( | printTableContent *const | content, |
char * | header, | ||
const bool | translate, | ||
const char | align | ||
) |
Definition at line 3220 of file print.c.
References _, printTableContent::align, printTableOpt::encoding, exit(), EXIT_FAILURE, fprintf, printTableContent::header, printTableContent::headers, mbvalidate(), printTableContent::ncolumns, printTableContent::opt, and translate().
Referenced by describeOneTableDetails(), describePublications(), describeRoles(), printCrosstab(), and printQuery().
void printTableCleanup | ( | printTableContent *const | content | ) |
Definition at line 3353 of file print.c.
References printTableContent::align, printTableContent::aligns, printTableContent::cell, printTableContent::cellmustfree, printTableContent::cells, printTableFooter::data, printTableContent::footer, printTableContent::footers, for(), free, printTableContent::header, printTableContent::headers, i, printTableContent::ncolumns, printTableFooter::next, printTableContent::nrows, printTableContent::opt, printTableContent::title, and unconstify.
Referenced by describeOneTableDetails(), describePublications(), describeRoles(), printCrosstab(), and printQuery().
void printTableInit | ( | printTableContent *const | content, |
const printTableOpt * | opt, | ||
const char * | title, | ||
const int | ncolumns, | ||
const int | nrows | ||
) |
Definition at line 3172 of file print.c.
References _, printTableContent::align, printTableContent::aligns, printTableContent::cell, printTableContent::cellmustfree, printTableContent::cells, printTableContent::cellsadded, exit(), EXIT_FAILURE, printTableContent::footer, printTableContent::footers, fprintf, printTableContent::header, printTableContent::headers, printTableContent::ncolumns, printTableContent::nrows, printTableContent::opt, pg_malloc0(), and printTableContent::title.
Referenced by describeOneTableDetails(), describePublications(), describeRoles(), printCrosstab(), and printQuery().
void printTableSetFooter | ( | printTableContent *const | content, |
const char * | footer | ||
) |
Definition at line 3335 of file print.c.
References printTableFooter::data, printTableContent::footer, printTableContent::footers, free, pg_strdup(), and printTableAddFooter().
Referenced by add_tablespace_footer().
void refresh_utf8format | ( | const printTableOpt * | opt | ) |
Definition at line 3691 of file print.c.
References unicodeStyleFormat::border_style, unicodeStyleFormat::column_style, unicodeStyleColumnFormat::down_and_horizontal, unicodeStyleBorderFormat::down_and_left, unicodeStyleBorderFormat::down_and_right, unicodeStyleFormat::header_nl_left, printTextFormat::header_nl_left, unicodeStyleFormat::header_nl_right, printTextFormat::header_nl_right, unicodeStyleRowFormat::horizontal, unicodeStyleBorderFormat::horizontal, printTextLineFormat::hrule, unicodeStyleBorderFormat::left_and_right, printTextLineFormat::leftvrule, printTextFormat::lrule, printTextLineFormat::midvrule, printTextFormat::midvrule_blank, printTextFormat::midvrule_nl, printTextFormat::midvrule_wrap, printTextFormat::name, unicodeStyleFormat::nl_left, printTextFormat::nl_left, unicodeStyleFormat::nl_right, printTextFormat::nl_right, pg_utf8format, PRINT_RULE_BOTTOM, PRINT_RULE_DATA, PRINT_RULE_MIDDLE, PRINT_RULE_TOP, printTextLineFormat::rightvrule, unicodeStyleFormat::row_style, printTableOpt::unicode_border_linestyle, printTableOpt::unicode_column_linestyle, printTableOpt::unicode_header_linestyle, unicode_style, unicodeStyleColumnFormat::up_and_horizontal, unicodeStyleBorderFormat::up_and_right, unicodeStyleColumnFormat::vertical, unicodeStyleBorderFormat::vertical, unicodeStyleColumnFormat::vertical_and_horizontal, unicodeStyleRowFormat::vertical_and_left, unicodeStyleRowFormat::vertical_and_right, unicodeStyleFormat::wrap_left, printTextFormat::wrap_left, unicodeStyleFormat::wrap_right, printTextFormat::wrap_right, unicodeStyleFormat::wrap_right_border, and printTextFormat::wrap_right_border.
void restore_sigpipe_trap | ( | void | ) |
Definition at line 3062 of file print.c.
References always_ignore_sigpipe, pqsignal(), SIG_DFL, SIG_IGN, and SIGPIPE.
Referenced by CloseGOutput(), ClosePager(), do_copy(), do_watch(), exec_command_write(), PageOutput(), and setQFout().
void set_sigpipe_trap_state | ( | bool | ignore | ) |
Definition at line 3075 of file print.c.
References always_ignore_sigpipe.
Referenced by setQFout().
void setDecimalLocale | ( | void | ) |
Definition at line 3641 of file print.c.
References decimal_point, groupdigits, pg_strdup(), and thousands_sep.
Referenced by main().
|
static |
Definition at line 3746 of file print.c.
References encoding, PQdsplen(), PQmblen(), start, and str.
Referenced by print_aligned_text(), and print_aligned_vertical().
|
static |
Definition at line 2810 of file print.c.
Referenced by print_troff_ms_text(), and print_troff_ms_vertical().
|
static |
Definition at line 45 of file print.c.
Referenced by restore_sigpipe_trap(), and set_sigpipe_trap_state().
volatile sig_atomic_t cancel_pressed = false |
Definition at line 43 of file print.c.
Referenced by ClosePager(), describeTableDetails(), do_watch(), ExecQueryAndProcessResults(), ExecQueryTuples(), listExtensionContents(), listTSConfigsVerbose(), listTSParsersVerbose(), MainLoop(), print_aligned_text(), print_aligned_vertical(), print_asciidoc_text(), print_asciidoc_vertical(), print_csv_text(), print_csv_vertical(), print_html_text(), print_html_vertical(), print_latex_longtable_text(), print_latex_text(), print_latex_vertical(), print_troff_ms_text(), print_troff_ms_vertical(), print_unaligned_text(), print_unaligned_vertical(), printQuery(), printTable(), PrintVariables(), psql_cancel_callback(), SendQuery(), and wait_until_connected().
|
static |
Definition at line 48 of file print.c.
Referenced by additional_numeric_locale_len(), format_numeric_locale(), and setDecimalLocale().
|
static |
Definition at line 52 of file print.c.
Referenced by footers_with_default().
|
static |
Definition at line 53 of file print.c.
Referenced by footers_with_default().
|
static |
Definition at line 49 of file print.c.
Referenced by additional_numeric_locale_len(), format_numeric_locale(), and setDecimalLocale().
const printTextFormat pg_asciiformat |
Definition at line 56 of file print.c.
Referenced by do_pset(), and get_line_style().
const printTextFormat pg_asciiformat_old |
Definition at line 77 of file print.c.
Referenced by do_pset(), and print_aligned_vertical().
printTextFormat pg_utf8format |
Definition at line 99 of file print.c.
Referenced by do_pset(), and refresh_utf8format().
|
static |
Definition at line 50 of file print.c.
Referenced by additional_numeric_locale_len(), format_numeric_locale(), and setDecimalLocale().
|
static |
Definition at line 140 of file print.c.
Referenced by refresh_utf8format().