Skip to content

Commit

Permalink
Quote table name in the VACUUM SQL (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
faridco committed Apr 28, 2024
1 parent 3aade1c commit 5825f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pg_easy_replicate/orchestrate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def run_vacuum_analyze(conn_string:, tables:, schema:)
)

Query.run(
query: "VACUUM VERBOSE ANALYZE #{t};",
query: "VACUUM VERBOSE ANALYZE #{quote_ident(t)};",
connection_url: conn_string,
schema: schema,
transaction: false,
Expand Down

0 comments on commit 5825f4f

Please sign in to comment.