Skip to content

SET search_path in batch causes "relation does not exist" #2130

Answered by jackc
ymmt2005 asked this question in Q&A
Discussion options

You must be logged in to vote

QueryExecModeExec does use the extended protocol, but it does not describe the query before it is executed. Instead of asking PostgreSQL what types the parameters are, it tells PostgreSQL the type the arguments are encoded as. In the vast majority of cases, this works fine. However, there are cases such as when the underlying type is json/jsonb where this means pgx will not know that it needs to encode as JSON.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ymmt2005
Comment options

Comment options

You must be logged in to vote
1 reply
@ymmt2005
Comment options

Answer selected by ymmt2005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants