Include database collation in output
This commit is contained in:
parent
1d007a9e8e
commit
a3a976908d
|
@ -6,6 +6,9 @@ db = psycopg2.connect("")
|
||||||
|
|
||||||
csr = db.cursor()
|
csr = db.cursor()
|
||||||
csr.execute("select version()")
|
csr.execute("select version()")
|
||||||
|
for r in csr:
|
||||||
|
print(r[0])
|
||||||
|
csr.execute("select datcollate from pg_database where datname = current_database()")
|
||||||
for r in csr:
|
for r in csr:
|
||||||
print(r[0])
|
print(r[0])
|
||||||
csr.execute("drop table if exists t_pgcollate")
|
csr.execute("drop table if exists t_pgcollate")
|
||||||
|
|
Loading…
Reference in New Issue