@@ -1418,46 +1418,46 @@ const char *PQparameterStatus(const PGconn *conn, const char *paramName);
1418
1418
1419
1419
<para>
1420
1420
Parameters reported as of the current release include
1421
- <literal >server_version</>,
1422
- <literal >server_encoding</>,
1423
- <literal >client_encoding</>,
1424
- <literal >application_name</>,
1425
- <literal >is_superuser</>,
1426
- <literal >session_authorization</>,
1427
- <literal >DateStyle</>,
1428
- <literal >IntervalStyle</>,
1429
- <literal >TimeZone</>,
1430
- <literal >integer_datetimes</>, and
1431
- <literal >standard_conforming_strings</>.
1432
- (<literal >server_encoding</>, <literal >TimeZone</>, and
1433
- <literal >integer_datetimes</> were not reported by releases before 8.0;
1434
- <literal >standard_conforming_strings</> was not reported by releases
1421
+ <varname >server_version</>,
1422
+ <varname >server_encoding</>,
1423
+ <varname >client_encoding</>,
1424
+ <varname >application_name</>,
1425
+ <varname >is_superuser</>,
1426
+ <varname >session_authorization</>,
1427
+ <varname >DateStyle</>,
1428
+ <varname >IntervalStyle</>,
1429
+ <varname >TimeZone</>,
1430
+ <varname >integer_datetimes</>, and
1431
+ <varname >standard_conforming_strings</>.
1432
+ (<varname >server_encoding</>, <varname >TimeZone</>, and
1433
+ <varname >integer_datetimes</> were not reported by releases before 8.0;
1434
+ <varname >standard_conforming_strings</> was not reported by releases
1435
1435
before 8.1;
1436
- <literal >IntervalStyle</> was not reported by releases before 8.4;
1437
- <literal >application_name</> was not reported by releases before 9.0.)
1436
+ <varname >IntervalStyle</> was not reported by releases before 8.4;
1437
+ <varname >application_name</> was not reported by releases before 9.0.)
1438
1438
Note that
1439
- <literal >server_version</>,
1440
- <literal >server_encoding</> and
1441
- <literal >integer_datetimes</>
1439
+ <varname >server_version</>,
1440
+ <varname >server_encoding</> and
1441
+ <varname >integer_datetimes</>
1442
1442
cannot change after startup.
1443
1443
</para>
1444
1444
1445
1445
<para>
1446
1446
Pre-3.0-protocol servers do not report parameter settings, but
1447
1447
<application>libpq</> includes logic to obtain values for
1448
- <literal >server_version</> and <literal >client_encoding</> anyway.
1448
+ <varname >server_version</> and <varname >client_encoding</> anyway.
1449
1449
Applications are encouraged to use <function>PQparameterStatus</>
1450
1450
rather than <foreignphrase>ad hoc</> code to determine these values.
1451
1451
(Beware however that on a pre-3.0 connection, changing
1452
- <literal >client_encoding</> via <command>SET</> after connection
1452
+ <varname >client_encoding</> via <command>SET</> after connection
1453
1453
startup will not be reflected by <function>PQparameterStatus</>.)
1454
- For <literal >server_version</>, see also
1454
+ For <varname >server_version</>, see also
1455
1455
<function>PQserverVersion</>, which returns the information in a
1456
1456
numeric form that is much easier to compare against.
1457
1457
</para>
1458
1458
1459
1459
<para>
1460
- If no value for <literal >standard_conforming_strings</> is reported,
1460
+ If no value for <varname >standard_conforming_strings</> is reported,
1461
1461
applications can assume it is <literal>off</>, that is, backslashes
1462
1462
are treated as escapes in string literals. Also, the presence of
1463
1463
this parameter can be taken as an indication that the escape string
0 commit comments