Skip to content

Extend EXPLAIN and add config param to switch transformation of property filter#1299

Merged
jrgemignani merged 1 commit intoapache:PG11from
rafsun42:feat-config-param-xx-PG11
Oct 25, 2023
Merged

Extend EXPLAIN and add config param to switch transformation of property filter#1299
jrgemignani merged 1 commit intoapache:PG11from
rafsun42:feat-config-param-xx-PG11

Conversation

@rafsun42
Copy link
Member

  • Explain command in the following format is supported now:
    EXPLAIN (VERBOSE, COSTS OFF, FORMAT XML) ...

Note that, this is basically Postgres' EXPLAIN command, and the purpose of this is to support debugging and regression tests.

  • Add config param to switch transformation method of property filter

When the age.enable_containment parameter is on, the agtype containment operator is used to transform property filter. When off, access operator is used instead. The former case is preferable for GIN index, and the later for BTREE expression index.

The idea of replacing containment with access operator in order to support BTREE index is taken from a patch by Josh Innis.

A note on regression testing- although there are test cases for the age.enable_containment parameter, sometimes it may be useful to set this parameter before running any tests (not just the ones related to it). For example, when the logic related to property transformation changes. It can be set in the age_regression.conf file.

…rty filter

* Explain command in the following format is supported
now:
    `EXPLAIN (VERBOSE, COSTS OFF, FORMAT XML) ...`

Note that, this is basically Postgres' EXPLAIN command,
and the purpose of this is to support debugging and
regression tests.

* Add config param to switch transformation method of property filter

When the `age.enable_containment` parameter is on, the agtype
containment operator is used to transform property filter. When off,
access operator is used instead. The former case is preferable for
GIN index, and the later for BTREE expression index.

The idea of replacing containment with access operator in order to
support BTREE index is taken from a patch by Josh Innis.

A note on regression testing- although there are test cases for the
`age.enable_containment` parameter, sometimes it may be useful to
set this parameter before running any tests (not just the ones related
to it). For example, when the logic related to property transformation
changes. It can be set in the `age_regression.conf` file.
@github-actions github-actions bot added the PG11 PostgreSQL11 label Oct 25, 2023
@jrgemignani jrgemignani requested a review from dehowef October 25, 2023 20:09
@jrgemignani jrgemignani merged commit f3c5687 into apache:PG11 Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PG11 PostgreSQL11

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants