I am trying to insert some JSON data to a table in postgresql.
JSON DATA:
{
"wsgi.multiprocess": true,
"HTTP_REFERER": "http://localhost:9000/"
}
So, to do this, I am doing these steps:
CREATE TABLE TEST (MULTIPROCESS VARCHAR(20), HTTP_REFERER VARCHAR(50));
INSERT INTO TEST SELECT * FROM json_populate_record(NULL::test, '{"wsgi.multiprocess": true,"HTTP_REFERER": "http://localhost:9000/"}');
The first step creates a table, while the next one should insert JSON data into the table. The query completes successfully, but when I try to see the data inside the table, it just a single pipe.
Here is the output:

Anybody knows why is the output like this? Any idea what I should do to rectify this?