About 8,850,000 results
Open links in new tab
  1. syntax - What does :: do in PostgreSQL? - Stack Overflow

    Mar 21, 2013 · A type cast specifies a conversion from one data type to another. PostgreSQL accepts two equivalent syntaxes for type casts, the PostgreSQL-specific value::type and the …

  2. What is the difference between `->>` and `->` in Postgres SQL?

    Postgres offers 2 operators to get a JSON member: the arrow operator: -> returns type JSON or JSONB; the double arrow operator: ->> returns type text; We must also understand that we …

  3. Postgres: INSERT if does not exist already - Stack Overflow

    Nov 1, 2010 · In Postgres version 9.5 or higher you can use ON CONFLICT to avoid errors of contraints like @Arie mentioned above. To know more options related to this INSERT query …

  4. Postgresql SELECT if string contains - Stack Overflow

    One thing non-intuitive thing is that for postgres, position is 1 based, not 0 based. For example select position('a' in 'abc') returns 1. And if there is no match it returns 0.

  5. How do you create a read-only user in PostgreSQL?

    Apr 22, 2011 · postgres=# CREATE ROLE xxx LOGIN PASSWORD 'yyy'; postgres=# GRANT SELECT ON DATABASE mydb TO xxx; But it appears that the only things you can grant on a …

  6. Npgsql Exception while reading from stream, Postgres

    Nov 1, 2016 · Npgsql Exception while reading from stream, Postgres. Ask Question Asked 8 years, 7 months ago.

  7. sql - PostgreSQL IF statement - Stack Overflow

    Mar 4, 2014 · How can I do such query in Postgres? IF (select count(*) from orders) > 0 THEN DELETE from orders ELSE INSERT INTO orders values (1,2,3);

  8. How to list active connections on PostgreSQL? - Stack Overflow

    Apr 15, 2020 · Following will give you active connections/ queries in postgres DB-SELECT pid ,datname ,usename ,application_name ,client_hostname ,client_port ,backend_start …

  9. Using psql how do I list extensions installed in a database?

    May 4, 2018 · psql -h localhost -d postgres -U username -E. with an -E switch which gives you the details of the hidden commands that any alias is using. Once you are IN you can simply do a …

  10. java - Is it possible to specify the schema when connecting to …

    Nov 12, 2010 · If you leave the schema unspecified, Postgres defaults to a schema named public within the database. See the manual, section 5.9.2 The Public Schema. To quote hat manual: …