Skip to content

Commit

Permalink
Fix issue 1000: Indexes created on WHERE (#1133)
Browse files Browse the repository at this point in the history
This fixes the issue with applying indexes on the WHERE clause.

It does this by modifying the volatility flag for 3 functions -

    _agtype_build_vertex
    _agtype_build_edge
    _label_name

All three were verified to met the specifications for IMMUTABLE.
  • Loading branch information
jrgemignani authored Aug 11, 2023
1 parent cfec4b9 commit 7632208
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions age--1.3.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ AS 'MODULE_PATHNAME';
CREATE FUNCTION ag_catalog._label_name(graph_oid oid, graphid)
RETURNS cstring
LANGUAGE c
STABLE
IMMUTABLE
PARALLEL SAFE
AS 'MODULE_PATHNAME';

Expand Down Expand Up @@ -3104,18 +3104,19 @@ AS 'MODULE_PATHNAME';
CREATE FUNCTION ag_catalog._agtype_build_vertex(graphid, cstring, agtype)
RETURNS agtype
LANGUAGE c
STABLE
IMMUTABLE
CALLED ON NULL INPUT
PARALLEL SAFE
AS 'MODULE_PATHNAME';

--
-- agtype - edge
--
CREATE FUNCTION ag_catalog._agtype_build_edge(graphid, graphid, graphid, cstring, agtype)
CREATE FUNCTION ag_catalog._agtype_build_edge(graphid, graphid, graphid,
cstring, agtype)
RETURNS agtype
LANGUAGE c
STABLE
IMMUTABLE
CALLED ON NULL INPUT
PARALLEL SAFE
AS 'MODULE_PATHNAME';
Expand Down

0 comments on commit 7632208

Please sign in to comment.