Skip to content

Commit

Permalink
Update neon extension relocatable for existing installations (#5943)
Browse files Browse the repository at this point in the history
  • Loading branch information
lubennikovaav committed Nov 28, 2023
1 parent 48b845f commit e81fc59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compute_tools/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit e81fc59

Please sign in to comment.