Skip to main content
Solved

Run trigger with hstore function on writing

  • March 28, 2023
  • 1 reply
  • 32 views

albinepro
Supporter
Forum|alt.badge.img+7

I would like to insert to a Postgres table where ther is set up an trigger event with hstore function to write to another table. While running in common SQL client with "public" search_path, there is no problem.

I can't make it run in FME workspace, always getting an error:

ERROR:  function hstore(vfk.par) does not exist

where "vfk.par" is the table I'm writing to. I have tried to add search_path "public" setup in "SQL To Run Before Write" but with no luck. Any hints, please?

-------

EDIT: In another workspace with another schemas but with similar tasks it runs without errors as expected. The triggers with its functions are almost identical.

Best answer by albinepro

So it was quite foolish mistake creating Postgres extension in other schema than "public". Recreating it in "public" worked.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

albinepro
Supporter
Forum|alt.badge.img+7
  • Author
  • Supporter
  • Best Answer
  • March 30, 2023

So it was quite foolish mistake creating Postgres extension in other schema than "public". Recreating it in "public" worked.