8000 README - detail on renaming IMMV + fix typo in drop IMMV by qmitchell-aa · Pull Request #123 · sraoss/pg_ivm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

README - detail on renaming IMMV + fix typo in drop IMMV #123

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

Merged
merged 1 commit into from
May 26, 2025

Conversation

qmitchell-aa
Copy link
Contributor
@qmitchell-aa qmitchell-aa commented Mar 12, 2025

In my testing, renaming the table seems to not break the IMMV. So I thought the readme should reflect that. If renaming isn't supported, then I'd recommend the readme reflecting that instead.

Thanks for an awesome extension!

@@ -300,7 +300,7 @@ test=# SELECT immvrelid AS immv, pgivm.get_immv_def(immvrelid) AS immv_def FROM
An IMMV can be dropped using the `DROP TABLE` command. Once an IMMV is dropped, its entry is automatically removed from the `pg_ivm_immv` catalog.

```sql
test=# DROP TABLE immv;
test=# DROP TABLE immv_agg;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made this change b/c the below query result shows the immv name to be "immv_agg". Typically the table name and immv name are the same. Trying to reduce confusion. see: https://github.com/sraoss/pg_ivm/pull/123/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L309

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change is unnecessary. It makes sense that we created "immv" and "immv_agg", and dropped "immv", so only "immv_agg" appear in pg_ivm_immv.

@yugo-n yugo-n self-requested a review March 21, 2025 05:48
@yugo-n yugo-n added the documentation Improvements or additions to documentation label Mar 21, 2025
@@ -300,7 +300,7 @@ test=# SELECT immvrelid AS immv, pgivm.get_immv_def(immvrelid) AS immv_def FROM
An IMMV can be dropped using the `DROP TABLE` command. Once an IMMV is dropped, its entry is automatically removed from the `pg_ivm_immv` catalog.

```sql
test=# DROP TABLE immv;
test=# DROP TABLE immv_agg;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change is unnecessary. It makes sense that we created "immv" and "immv_agg", and dropped "immv", so only "immv_agg" appear in pg_ivm_immv.

@yugo-n
Copy link
Collaborator
yugo-n commented May 8, 2025

In my testing, renaming the table seems to not break the IMMV. So I thought the readme should reflect that. If renaming isn't supported, then I'd recommend the readme reflecting that instead.

Thank you for your proposal! It seems nice because pg_ivm support renaming using ALTER TABLE.
However, I think the change on "DROP TABLE" is not necessary. See the review comments.

@yugo-n yugo-n merged commit c31d5ec into sraoss:main May 26, 2025
63B5 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0