diff --git a/compute_tools/src/spec.rs b/compute_tools/src/spec.rs index 97aa144c7948..8c44c6d519f4 100644 --- a/compute_tools/src/spec.rs +++ b/compute_tools/src/spec.rs @@ -687,6 +687,9 @@ pub fn handle_extension_neon(client: &mut Client) -> Result<()> { info!("create neon extension with query: {}", query); client.simple_query(query)?; + query = "UPDATE pg_extension SET extrelocatable = true WHERE extname = 'neon'"; + client.simple_query(query)?; + query = "ALTER EXTENSION neon SET SCHEMA neon"; info!("alter neon extension schema with query: {}", query); client.simple_query(query)?; diff --git a/pgxn/neon/neon.control b/pgxn/neon/neon.control index c110437c3e99..4e4cb9f372b2 100644 --- a/pgxn/neon/neon.control +++ b/pgxn/neon/neon.control @@ -2,3 +2,4 @@ comment = 'cloud storage for PostgreSQL' default_version = '1.1' module_pathname = '$libdir/neon' +relocatable = true