About 50 results
Open links in new tab
  1. what does the @> operator in postgres do? - Stack Overflow

    May 2, 2016 · 113 I came across a query in postgres here which uses the @> operator on earth objects. I've searched everywhere, but have come up empty on the meaning of this operator (and likely …

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

    What is the difference between ->> and -> in SQL? In this thread (Check if field exists in json type column postgresql), the answerer basically recommends using, json->'attribute' is ...

  3. syntax - What does :: do in PostgreSQL? - Stack Overflow

    Mar 21, 2013 · It seems to be some sort of cast. What exactly is :: in postgres and when should it be used? I tried a bit of googling and searched the Postgres docs for :: but got no good results. I tried …

  4. database - What are '$$' used for in PL/pgSQL - Stack Overflow

    Aug 27, 2012 · These dollar signs ($$) are used for dollar quoting, which is in no way specific to function definitions. It can be used to replace single quotes enclosing string literals (constants) anywhere in …

  5. postgresql - 'password authentication failed for user "postgres ...

    I have installed PostgreSQL 8.4, Postgres client and Pgadmin 3. Authentication failed for user "postgres" for both console client and Pgadmin. I have typed user as "postgres" and password "postgres",

  6. postgresql - postgres with docker compose gives FATAL: role "root" …

    Feb 12, 2020 · I'm trying to create a simple demo with postgres on a local windows machine with docker desktop. This is my yaml docker compose file named img.yaml: version: '3.6' services: postgres …

  7. postgresql - How to switch databases in psql? - Stack Overflow

    Oct 16, 2010 · By default, Postgres runs on the port 5432. If it runs on another, make sure to pass the port in the command line. ... By a simple alias, we can make it handy. Create an alias in your .bashrc …

  8. PostgreSQL: Why psql can't connect to server? - Stack Overflow

    Mar 19, 2019 · Thanks, my postgres on an ec2 instance wouldn't start anymore. That did the trick. Since it was a dev server I didn't mind losing the data.

  9. pgadmin - pg Admin 4 - password for "postgres" user when trying to ...

    Oct 4, 2020 · This will disable password for your DB. Click on any database in postgresql to use Query Tool. In Query Tool type ALTER USER postgres WITH PASSWORD 'User_password'; postgres is …

  10. sql - Not equal and null in Postgres - Stack Overflow

    In PostgreSQL: <> or != means Not equal, but cannot treat NULL as a comparable value. IS DISTINCT FROM means Not equal, and can treat NULL as a comparable value. So for example, there is …