Postgresql collation -
is posible define collation connection? i'm connecting postgresql server 9.3 via php pdo. know can set collation server, column or define in select statement need connection.
thank you.
i don't think can set collation in connection. however, if need change collation data representation , not ordering, can add following parameters connection string:
lc_monetary (string) sets locale use formatting monetary amounts, example to_char family of functions. acceptable values system-dependent; see section 22.1 more information. if variable set empty string (which default) value inherited execution environment of server in system-dependent way.
lc_numeric (string) sets locale use formatting numbers, example to_char family of functions. acceptable values system-dependent; see section 22.1 more information. if variable set empty string (which default) value inherited execution environment of server in system-dependent way.
lc_time (string) sets locale use formatting dates , times, example to_char family of functions. acceptable values system-dependent; see section 22.1 more information. if variable set empty string (which default) value inherited execution environment of server in system-dependent way.
source: client connection locale , formatting (postgres 9.3 documentation)
Comments
Post a Comment