Should Request Headers be Displayed When a Request is Made to a Stored Procedure? #2436
-
Environment
Description of issueI've written a function to retrieve request headers. I have added the following stored procedure in postgres:
And I'm testing it using curl and postgrest:
The response is:
(Expected behavior vs actual behavior)My expectation is that all request headers will be returned in json format. In particular, since I've specified a request header ( Instead, I receive an empty json response. (Steps to reproduce: Include a minimal SQL definition plus how you make the request to PostgREST and the response body)The question should be reproducible using the above function and curl command. I'm using a compose file similar to this:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, should work.
I'm not sure if the above config works, try with |
Beta Was this translation helpful? Give feedback.
Yes, should work.
I'm not sure if the above config works, try with
PGRST_DB_USE_LEGACY_GUCS: 1
or try using postgres 14.