mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 09:52:54 +00:00
uncomment the extension creation
This commit is contained in:
@@ -18,7 +18,6 @@ def test_cloud_regress(remote_pg: RemotePostgres):
|
||||
Run the regression tests
|
||||
"""
|
||||
pg_version = re.search(r"\-pg(\d+)\]", os.environ.get('PYTEST_CURRENT_TEST')).group(1)
|
||||
log.info(pg_version)
|
||||
conn = psycopg2.connect(remote_pg.connstr())
|
||||
cur = conn.cursor()
|
||||
cur.execute("SELECT COUNT(*) FROM pg_extension WHERE extname = 'regress_so'")
|
||||
@@ -28,13 +27,13 @@ def test_cloud_regress(remote_pg: RemotePostgres):
|
||||
log.info('The extension is found')
|
||||
else:
|
||||
log.info('Creating the extension')
|
||||
#cur.execute('CREATE EXTENSION regress_so')
|
||||
#conn.commit()
|
||||
cur.execute('CREATE EXTENSION regress_so')
|
||||
conn.commit()
|
||||
|
||||
log.info('Creating a C function to check availability of regress.so')
|
||||
#cur.execute("CREATE FUNCTION get_columns_length(oid[]) "
|
||||
# "RETURNS int AS 'regress.so' LANGUAGE C STRICT STABLE PARALLEL SAFE;")
|
||||
#conn.rollback()
|
||||
cur.execute("CREATE FUNCTION get_columns_length(oid[]) "
|
||||
"RETURNS int AS 'regress.so' LANGUAGE C STRICT STABLE PARALLEL SAFE;")
|
||||
conn.rollback()
|
||||
neondir = os.path.abspath(os.path.join(os.path.dirname(os.path.relpath(__file__)), '../../'))
|
||||
runpath = f'{neondir}/vendor/postgres-v{pg_version}/src/test/regress'
|
||||
artpath = '/tmp/neon'
|
||||
|
||||
Reference in New Issue
Block a user