Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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!


```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

```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
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