Skip to content
Discord Get Started

Session Parameters

Session-level configuration with SET/SHOW.

SQL
SET variable = value; -- session-scoped
SET LOCAL variable = value; -- transaction-scoped
SHOW variable;
SHOW ALL; -- list all parameters
RESET variable;
RESET ALL;
-- Functions
SELECT current_setting('variable_name');
SELECT set_config('variable_name', 'value', false);
ParameterDefaultMutableDescription
application_name''YesApplication name for the session
bytea_outputhexYesOutput format for bytea values
client_encodingUTF8YesClient-side character encoding
client_min_messagesnoticeYesMinimum message severity sent to client
datestyleISO, MDYNoDate display format
default_transaction_isolationread committedNoDefault isolation level
default_transaction_read_onlyoffYesDefault read-only state for new transactions
extra_float_digits1YesExtra precision for floating-point output
search_path$user, publicYesSchema search order
server_encodingUTF8NoServer-side character encoding
server_version16.0NoReported PostgreSQL version
standard_conforming_stringsonYesTreat backslashes literally in strings
statement_timeout60000msYesQuery timeout (0 = no limit)
timezoneUTCYesSession timezone
transaction_isolationrepeatable readYesCurrent transaction isolation level
work_mem4MBYesMemory for sort operations
lock_timeout0YesLock acquisition timeout
password_encryptionscram-sha-256YesPassword hashing algorithm
max_identifier_length63YesMaximum identifier length
lc_messagesCYesLocale for messages

Other accepted PostgreSQL parameters: check_function_bodies, default_table_access_method, default_tablespace, default_text_search_config, default_transaction_deferrable, idle_in_transaction_session_timeout, in_hot_standby, integer_datetimes, intervalstyle, lc_monetary, lc_numeric, lc_time, max_index_keys, row_security, xmloption.

ParameterDefaultDescription
db9.dml_table_scan_max_rows10000Max rows per auxiliary source for UPDATE FROM / DELETE USING (0 = unlimited)
db9.max_sort_bytes256MBMemory limit for sort operations
db9.prepared_plan_cache_size128Prepared statement plan cache size
db9.prepared_plan_cache_min_exec5Min executions before plan cache promotion
db9.retry_max_attempts64Max retry attempts for autocommit DML/DDL on write conflict
db9.retry_timeout0Max wall-time for retries per statement (0 = no limit)
db9.use_optimizeronCost-based optimizer (always on, immutable)
ParameterDefaultDescription
embedding.providerEmbedding provider: openai or bedrock
embedding.endpointEmbedding service endpoint URL
embedding.modelModel name
embedding.api_keyEmbedding service API key
embedding.dimensionsOutput vector dimensions
embedding.concurrency5Max concurrent embedding calls
embedding.max_calls100Max embedding calls per statement
ParameterDefaultDescription
hnsw.ef_search40Dynamic candidate list size for HNSW index search