How to import a sql file using Postgresql 16?
I’m using Postgresql 16.3 but whenever I try to import a new file (.sql) it doesn’t work! I tried to import my .sql file using Postbird, but it throws me an error that says: “psql authentification method 10 not supported FAILURE”
ERROR: relation “public.lntds_assets” does not exist SQL state: 42P01
CREATE SEQUENCE IF NOT EXISTS public.lntds_asset_notes_id_seq
INCREMENT 1
START 1
MINVALUE 1
MAXVALUE 2147483647
CACHE 1;
Aggregated rollup in PostgreSQL with avg and sum in different levels?
I have a PostgreSQL query that aggregates data from multiple tables and generates a report. Currently it works perfectly fine and it is quite simple. Here is the query I’m using:
What criteria are used by UNION to make result rows “DISTINCT”?
The manual says:
On postgres, UNION uses what criteria do DISTINCT on the result?
on the docs says:
How do I diagnose a 38s planning time for `select *` in Postgres?
I have a table that Postgres is really struggling with planning queries on. I’ve been running:
To display customers who have made a large number of orders in a certain time range for all time in SQL
There is a database with online store customers, which has the following data:
How can I share a temp table between transactions on Postgresql?
How can I share a temp table between transactions on Postgresql?
how to select all highlighted entries
I need to select all records except those whose field “ver_card_id” matches and field “answer” differs, and one of the values must be 5
[Help]
(https://i.sstatic.net/VnjTXJth.png)
How to read from refcursor inside a function/procedure in postgresql
Lets say I have 2 functions: get_emp_ids
and get_emp_details
on my employees
table. The get_emp_ids
function returns a refcursor
containing the ids of the employees. This will be function that will be frequently called in other procedures/functions.