Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
All versions of PostgreSQL. Add an additional version-specific tag like [postgresql-13] if that context is relevant.
5
votes
2
answers
5k
views
What are the benefits of storing columns in JSON instead of traditional tables?
Are there any benefits in using JSON(B) over traditional table structures?
Imagine having a table structure like this:
create table table1 (
t_id int,
first_name varchar(20),
…
0
votes
Accepted
How to insert json into a table and have certain columns remain json
The actual column name "p_attribute" and the key "p_attributes" in the json format were different...
0
votes
1
answer
718
views
How to insert json into a table and have certain columns remain json [closed]
"favourite_qoute": "I am the classic example"
}
}]';
But I execute this insert then the p_attribute column gets a null but the rest of the columns are correctly inserted:
Im using PostgreSQL …
0
votes
1
answer
42
views
Why do I have 2 connections when im using 1 client?
The command:
select * from pg_stat_activity
shows all currently active connections.
The database is hosted by AWS RDS and I am accessing the database with pgAdmin 4, thus I expect one other connect …
0
votes
1
answer
66
views
query an indexed jsonb column
I want to query a jsonb column with the @> operator.
This query gives results:
select * from json_table1
where p_attribute @> '{"age":"37"}'
This query doesn't fail but also doesn't give results:
…
0
votes
1
answer
366
views
Inheritence and Primary Key Constraints
I am currently trying to see how the object oriented features come in play in Postgres. During a few tests I noticed that when you insert in or delete from inheriting tables that those changes also ha …
2
votes
2
answers
34k
views
Using Python to insert JSON into PostgreSQL [closed]
I have achieved inserting a JSON via psql, but its not really inserting a JSON-File, it's more of inserting a string equivalent to a JSON file and PostgreSQL just treats it as json. …