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

Support types that does not have an equality operator #61

Open
yugo-n opened this issue Jun 6, 2023 · 0 comments
Open

Support types that does not have an equality operator #61

yugo-n opened this issue Jun 6, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@yugo-n
Copy link
Collaborator

yugo-n commented Jun 6, 2023

If an IMMV contains a column whose type does not have an equality operator, for example, json or xml, the following error is raised.

ERROR: could not identify an equality operator for type json

The current pg_ivm doesn't support such types. So, this should be documented and also checked in create_immv.

Moreover, I would like to allow to use such type in future.

@yugo-n yugo-n added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 6, 2023
yugo-n added a commit that referenced this issue Aug 31, 2023
Currently, types that does not have an equality operator cannot
be used in the target list of the view definition, because all
of target list entries are used for comparison to identify rows
to be updated or deleted in the view. Previously, an error is
raised at the time such view is incrementally maintained, this
is fixed to check that at the view creation time.

This restriction may be relaxed in future after we can use an
index to identify rows in the view.

Issue #61
yugo-n added a commit that referenced this issue Aug 31, 2023
Currently, types that does not have an equality operator cannot
be used in the target list of the view definition, because all
of target list entries are used for comparison to identify rows
to be updated or deleted in the view. Previously, an error is
raised at the time such view is incrementally maintained, this
is fixed to check that at the view creation time.

This restriction may be relaxed in future after we can use an
index to identify rows in the view.

Issue #61
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 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant