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.
0
votes
How to write the bash scripts with automatic function in postgresql?
You should use the environment variable PGPASSWORD. In your example that would be
PGPASSWORD="xyzzy"
psql -U root -c 'CREATE DATABASE magento;'
On the command line you can put the environment vari …
0
votes
Can I find all JSON scalars in PostgreSQL 9.3?
One approach is to check the string form of the JSON column. An object should start with '{', or maybe by some spaces followed by that character. So
SELECT *
FROM data_write
WHERE comment::text NOT …
3
votes
2
answers
4k
views
Can I find all JSON scalars in PostgreSQL 9.3?
We are using Postgres 9.3 and making use of the JSON column which was new to that version. Version 9.4 added a LOT of utility functions for handling JSON, as well as the new JSONB column. You can see …
2
votes
Should I split this large table into three smaller tables?
@CoderAbsolute's answer gives you a good design for your tables. Since he or she did not go into detail about why this approach is better, I thought it was worth adding another answer.
First of all, …