Fetch the last system oid for the database connection too.

This commit is contained in:
Sanket Mehta 2016-01-22 10:38:02 +05:30 committed by Ashesh Vashi
parent 0a21beca17
commit 0eadd92a7f

View File

@ -568,7 +568,7 @@ class ServerManager(object):
status, res = conn.execute_dict("""
SELECT
db.oid as did, db.datname, db.datallowconn, pg_encoding_to_char(db.encoding) AS serverencoding,
has_database_privilege(db.oid, 'CREATE') as cancreate
has_database_privilege(db.oid, 'CREATE') as cancreate, datlastsysoid
FROM
pg_database db
WHERE db.oid = {0}""".format(did))