Skip to content
How to specify as a connection option

How to specify as a connection option

How to specify as a connection option

DefinitionKeywordAbbreviation
Data source descriptionDescriptionNothing
Name of ServerServernameNothing
Postmaster listening portPortNothing
User NameUsernameNothing
PasswordPasswordNothing
Debug flagDebugB2
Fetch Max CountFetchA7
Socket buffer sizeSocketA8
Database is read onlyReadOnlyA0
Communication to backend loggingCommLogB3
PostgreSQL backend protocolProtocolA1
Connect Settings (commands sent to backend on connection)ConnSettingsA6
Recognize unique indexesUniqueIndexNothing
Unknown result set sizesUnknownSizesA9
Use Declare/Fetch cursorsUseDeclareFetchB6
Text as LongVarcharTextAsLongVarcharB7
Unknowns as LongVarcharUnknownsAsLongVarcharB8
Bools as CharBoolsAsCharB9
Max Varchar sizeMaxVarcharSizeB0
Max LongVarchar sizeMaxLongVarcharSizeB1
Fakes a unique index on OIDFakeOidIndexA2
Includes the OID in SQLColumnsShowOidColumnA3
Row VersioningRowVersioningA4
Show SystemTablesShowSystemTablesA5
Parse StatementsParseC0
SysTable PrefixesExtraSysTablePrefixesC2
Updateable CursorsUpdatableCursorsC4
LF <-> CR/LF conversionLFConversionC5
True is -1TrueIsMinus1C6
Datatype to report int8 columns asBINothing
Bytea as LO (longVarBinary)ByteaAsLongVarBinaryC7
Use serverside prepareUseServerSidePrepareC8
Lower case identifierLowerCaseIdentifierC9
SSL modeSSLmodeCA
Extra optionsABNothing
Abbreviate(simple setup of a recommendation value)CXNothing
TCP KEEPALIVE setting: idle timeKeepaliveTimeD1
TCP KEEPALIVE setting: intervalKeepaliveIntervalD2
Libpq parameters (a conninfo style string e.g. pqopt={sslcert=/mycert sslkey=/mykey} enclosed with braces in the case of connection strings)PqoptD5
Numeric As: specify the map from numeric items without precision to SQL data types. 2(SQL_NUMERIC default), 8(SQL_DOUBLE), 12(SQL_VARCHAR) or -1(SQL_LONGVARCHAR) can be specified.NumericASD6
Show optional error messages.OptionalErrorsD7
Chunk size when executing batches for parameterized SQL statements with arrays of parameters.BatchSizeD8
Ignore SQL_ATTR_QUERY_TIMEOUT set using SQLSetStmtAttr().IgnoreTimeoutD9

\