Greetings,
I am using postgres database running within docker v13.3 (latest). I have found an issue where jsonb and timestamp type returned from function saved in the db assumes extra quotes and thus break json format.
I have a table that has a column of jsonb type.
when I query this table json be is returned correctly (as stored).
When I use this querry within a function, the jsonb column is modified such that every value in the json tree assumes extra quotes:
For information completness sake, this only happens if there is other than jsonb type in thre returns table statement:
Timestamp also gets extra quotes when included in the return table statement (I have demostrated the case above with minimal example. Following snippet is result of actual function that I use):
Best regards,
Jakub