JoshInnis commented on issue #45:
URL: https://github.com/apache/incubator-age/issues/45#issuecomment-983087777


   It might be safe to change `agtype_access_operator` to immutable. 
   
   Per Postgres' Documentation:
   
   IMMUTABLE indicates that the function cannot modify the database and always 
returns the same result when given the same argument values; that is, it does 
not do database lookups or otherwise use information not directly present in 
its argument list. If this option is given, any call of the function with 
all-constant arguments can be immediately replaced with the function value.
   
   STABLE indicates that the function cannot modify the database, and that 
within a single table scan it will consistently return the same result for the 
same argument values, but that its result could change across SQL statements. 
This is the appropriate selection for functions whose results depend on 
database lookups, parameter variables (such as the current time zone), etc. (It 
is inappropriate for AFTER triggers that wish to query rows modified by the 
current command.) Also note that the current_timestamp family of functions 
qualify as stable, since their values do not change within a transaction.
   
   The access operator works for Agtype Lists and Maps, it does not perform any 
database lookup, it just extracts a value from the first passed in parameter.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to