Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flexible Freeze fails on schema-qualified table names #31

Open
nickgsc opened this issue Aug 9, 2022 · 1 comment
Open

Flexible Freeze fails on schema-qualified table names #31

nickgsc opened this issue Aug 9, 2022 · 1 comment

Comments

@nickgsc
Copy link

nickgsc commented Aug 9, 2022

If your database has multiple schemas, and the base query detects one of these tables needs to be vacuumed, it fails because the schema-qualified table name is being wrapped in double quotes.

The failure looks like the following:

2022-08-09 14:20:52 UTC: VACUUM FREEZE ANALYZE "schema.table" in database dbname
2022-08-09 14:20:52 UTC: VACUUMing schema.table failed.
2022-08-09 14:20:52 UTC: relation "schema.table" does not exist
@Xof
Copy link
Contributor

Xof commented Aug 13, 2022

Thanks for the report and the PR! There is definitely an issue here with tables that are not in search_path. The proposed PR would fail if a table had "A Name That Needs Quoting", so more work is required there. We'll see about fixing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants