bravius commented on issue #161:
URL: https://github.com/apache/incubator-age/issues/161#issuecomment-1014861860


   Hey bud, I was also looking for an indexing solution, so I just re-worked 
your function as a plpgsql function. It seems to work as expected now, throws 
error on duplicates. Thus, I don't think it was a bug, just the way the custom 
function was written:
   
   ```
   CREATE OR REPLACE FUNCTION get_id(properties agtype)
   RETURNS agtype
   AS
   $BODY$
   BEGIN
      return agtype_access_operator(properties, '"id"');
   END;
   $BODY$
   LANGUAGE plpgsql
   IMMUTABLE;
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to