diff --git a/pgcollate b/pgcollate index f60d4f0..1c59bfb 100755 --- a/pgcollate +++ b/pgcollate @@ -6,6 +6,9 @@ db = psycopg2.connect("") csr = db.cursor() 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: print(r[0]) csr.execute("drop table if exists t_pgcollate")