Skip to main content

Questions tagged [postgresql-14]

Use this tag if your question is about PostgreSQL version 14 specific feature or behaviour. Please also add the generic [postgres] tag.

1 vote
0 answers
38 views

I want to keep the first row of dulplicate records in PostgreSQL 14, this is the sql look like: WITH xzqh_info AS ( SELECT xzqhdm, xzqhmc FROM area_table ...
Dolphin's user avatar
  • 937
0 votes
0 answers
35 views

I am facing a issue that the sql first time query was slow. I read the execution plan and found out the index are not in shared buffers the first time query. then I prewarm the index like this: SELECT ...
Dolphin's user avatar
  • 937
1 vote
0 answers
56 views

When I use the execution plan in PostgreSQL 14, I found the execution plan much faster than the actual query, this is how I generate the execution plan: explain (analyze true, timing true) long sql... ...
Dolphin's user avatar
  • 937
0 votes
0 answers
45 views

I have an analyse query in PostgreSQL 14 that use many CTEs, like this: with a0 as (select count(*) from ccc0) , a1 as (select count(*) from ccc1) , a2 as (select count(*) from ccc2) , a3 as (...
Dolphin's user avatar
  • 937
0 votes
0 answers
22 views

I have a sql like this in PostgreSQL 14: SELECT biz_id login_time, ROW_NUMBER() OVER (PARTITION BY biz_id ORDER BY login_time DESC) AS priority_rn FROM example then I ...
Dolphin's user avatar
  • 937
0 votes
0 answers
38 views

I have a trigger currently defined like this... CREATE TRIGGER trig1 AFTER INSERT ON public.posMessage FOR EACH ROW EXECUTE PROCEDURE public.parsemess(); The procedure parsemess() will parse one of ...
ConanTheGerbil's user avatar
1 vote
1 answer
73 views

I'm running into performance problems with a query that buckets a set of historical records of daily counts into a form that can be rendered easily as a daily graph. Context Essentially, the table in ...
hampercm's user avatar
  • 111
1 vote
1 answer
104 views

I recently deployed a migration to production that added a new column to a table. The migration was very simple and should have only locked the table for milliseconds: ALTER TABLE "table_1" ...
mdole's user avatar
  • 11
0 votes
1 answer
337 views

I recently upgraded PostgreSQL 14 to PostgreSQL 16 using --clone method. Both my data directories (old & new cluster) were on same volume. After few days, I started receiving below error. 53100: ...
UdIt Solanki's user avatar
0 votes
1 answer
143 views

I'm working on a large project that includes some postgres database work, but I'm not very familiar w/ the details of postgres. Basically, I need to set-up a read-only DB that is a copy of our ...
user avatar
0 votes
1 answer
63 views

I have two tables, for sake of simplification let's call them employees and employee_comms: employee: id name dept 1 Jane Maintenance 2 Joe Design employee_comms: id contact_id comms_type comms_value ...
sterroso's user avatar
3 votes
1 answer
615 views

When selecting a number of records from a Postgres table based on a list of ids passed as a parameter, what are the benefits and drawbacks of SELECT id, <more...> FROM tbl INNER JOIN UNNEST($1) ...
Alex O's user avatar
  • 133
0 votes
0 answers
50 views

I am currently managing a 3-node PostgreSQL asynchronous streaming replication cluster setup, which includes one master node and two standby nodes, all sitting behind a pgpool load balancer. During ...
Sheikh Wasiu Al Hasib's user avatar
0 votes
1 answer
137 views

I have inherited a Postgresql server but have no records of the admin credentials or any user account. I do have local admin access to the Windows VM that hosts this Postgresql server. How can I gain ...
variable's user avatar
  • 3,610
0 votes
0 answers
34 views

I am using PostgreSQL 14. I created a database, set up a user, and performed a migration. Now, the database is connected to the application, and a security test was conducted. I have been tasked with ...
Jan Kůst's user avatar

15 30 50 per page
1
2 3 4 5
8