Skip to main content

Module postgres

Module postgres 

Source

Structsยง

PostgresConfig
PostgresSink
PostgresSinkWriter

Enumsยง

PendingOp ๐Ÿ”’
PendingRows ๐Ÿ”’
Rows accumulated across chunks, written out on flush.
StatementKind ๐Ÿ”’

Constantsยง

CHECK_FOREIGN_KEY_SQL ๐Ÿ”’
MAX_BATCH_ROWS_LIMIT ๐Ÿ”’
Upper bound of max_batch_rows: bigger batches only add buffer memory, since statements are split at MAX_STATEMENT_PARAMS anyway.
MAX_STATEMENT_PARAMS ๐Ÿ”’
Maximum number of bind parameters of a single statement. PostgreSQL itself allows 65535, but the client encodes the parameter count of a Bind message as i16, so a larger batch fails before ever reaching the server.
POSTGRES_SINK

Functionsยง

convert_row_to_pg_row ๐Ÿ”’
create_delete_sql ๐Ÿ”’
create_insert_sql ๐Ÿ”’
create_parameter_tuples ๐Ÿ”’
($1, $2), ($3, $4), ...
create_upsert_sql ๐Ÿ”’
default_max_batch_rows ๐Ÿ”’
default_schema ๐Ÿ”’
ensure_no_foreign_key ๐Ÿ”’
ensure_no_foreign_key_with_client ๐Ÿ”’
execute_batches ๐Ÿ”’
prev_power_of_two ๐Ÿ”’
Largest power of two not exceeding n. n must be positive.
quote_identifier ๐Ÿ”’
Quote an identifier for PostgreSQL.
split_power_of_two ๐Ÿ”’
Splits rows into power-of-two-sized chunks no larger than cap, largest first.
tcp_keepalive_from_config ๐Ÿ”’
tuples_per_statement ๐Ÿ”’
Number of tuples a single statement may carry, bounded by the parameter limit of the protocol.

Type Aliasesยง

PgDatum ๐Ÿ”’
PgRow ๐Ÿ”’