Top "Postgresql-9.2" questions

for PostgreSQL questions specific to version 9.2.

How to make a select with array contains value clause in psql

I have column arr which is of type array. I need to get rows, where arr column contains value s …

postgresql postgresql-9.2
How to Disconnect from a database and go back to the default database in PostgreSQL?

I'm using PostgreSql version : postgres=# select version(); version ------------------------------------------------------------- PostgreSQL 9.2.4, compiled by Visual C++ build 1600, 64-bit (1 row) i had connected …

postgresql postgresql-9.1 postgresql-9.2
PostgreSql INSERT FROM SELECT RETURNING ID

In PostgreSql 9.2.4 I have two tables: user (id, login, password, name) and dealer (id, user_id). And I want to …

sql postgresql insert postgresql-9.2
Now() without timezone

I have a column added_at of type timestamp without time zone. I want it's default value to be the …

postgresql timestamp postgresql-9.2
How to create a user for Postgres from the command line for bash automation

I am using Ubuntu 12.04 and Postgress 9.2. I need to create this user with this password e.g. postgres://admin:[email protected]:5432 …

postgresql ubuntu postgresql-9.2
what is the maximum length of varchar(n) in postgresql 9.2 and which is best to use varchar(n) or text?

Hi I am using postgresql 9.2 and I want to use varchar(n) to store some long string but I don't …

sql postgresql-9.2
PostgreSQL 9.2 row_to_json() with nested joins

I'm trying to map the results of a query to JSON using the row_to_json() function that was added …

json postgresql postgresql-9.2 scalar-subquery
42501: INSUFFICIENT PRIVILEGE ERROR while querying in Postgresql

I am trying to query a database table in postgresql, but every time I run the below query it gives …

sql database postgresql-9.2
How to insert data into table using stored procedures in postgresql

CREATE TABLE app_for_leave ( sno integer NOT NULL, eid integer, ename varchar(20), sd date, ed date, sid integer, status …

sql postgresql postgresql-9.2
PostgreSQL 9.2 - Convert TEXT json string to type json/hstore

I have a TEXT column containing valid JSON string. CREATE TABLE users(settings TEXT); INSERT INTO users VALUES ('{"language":"…

postgresql postgresql-9.2