Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
3 votes
1 answer
5k views

$ /usr/pgsql-12/bin/pg_upgrade \ > -b /usr/pgsql-1 pgsql-10/ pgsql-12/ > -b /usr/pgsql-10/bin/ \ > -B /usr/pgsql-12/bin/ \ > -d /var/lib/pgsql/1 10/ 12/ > -d /var/lib/pgsql/10/data/ \ &...
Shubham Singh's user avatar
0 votes
0 answers
54 views

I have this piece of code : DO $$ DECLARE v_RowCountInt Int; BEGIN execute ('insert into vcc.toto select * from vcc.segment s limit 50 on conflict (id_segment,pds) do update ...
MattRgx's user avatar
  • 47
0 votes
2 answers
242 views

This is my query: SELECT *, CONCAT( RIGHT( account_no, 4), RIGHT( customer_id, 5 ) ) AS "password for my diplomo" FROM account_info; But I get this error: ...
Pandibabu's user avatar
0 votes
1 answer
919 views

Currently the table have minimum row of 30million, and it is growing, whenever try to do SELECT query, it take extremely long time. What need to optimize the query before I increase the performance of ...
Sola's user avatar
  • 1,532
0 votes
1 answer
574 views

I have a table with a JSONB column that is used to store multiple tags (integer) that have been applied to a task, eg.: '[123, 456, 789]'. ALTER TABLE "public"."task" ADD COLUMN &...
Tom's user avatar
  • 779
0 votes
1 answer
1k views

Using psql with COPY FROM STDIN works fine when executed via -c (inline command) but the same thing fails if -f (script file) is used. I've created a Docker-based test to demonstrate below; tested on ...
Neil C. Obremski's user avatar
0 votes
1 answer
2k views

I'm trying to change these two parameters (random_page_cost and effective_io_concurrency) in my Postgresql 12 database. For the first one I found this command : alter database mydb set ...
Mohamed BOUAKKAZ's user avatar
0 votes
1 answer
283 views

currently I am migrating the postgres database from pg8 to pg12, but I have encounter with a new issue previously in pg8 create table test (id int, data bytea); insert into test values (1,'hello ...
Safwan Bardolia's user avatar
1 vote
1 answer
649 views

I would like to query a table, orders, anad select all rows based on a value in a json object in a column, updates. I want to select all rows that are within 5 days from the last time it was closed. ...
Gustaf's user avatar
  • 1,349
0 votes
0 answers
198 views

After experiencing issues related to the existence of two different PostgreSQL versions installed on the same machine, I decided to remove --purge postgresql* and reinstall postgresql-13. Now the ...
Mapper's user avatar
  • 142
1 vote
1 answer
7k views

I'm struggling with JSONB_PATH_EXISTS Postgres function I'm using PG 12 and following this documentation : https://www.postgresql.org/docs/12/functions-json.html With the following request (test it on ...
codename44's user avatar
0 votes
0 answers
331 views

I'm using r6g.4xlarge AWS machine to test tiger geocoder of my own and succeeded in setting up the Tiger Geocoder data of 2019 in a postgresql version 12. I've setup pgtune for better performance and ...
S A R's user avatar
  • 229
4 votes
1 answer
895 views

(For background I'm using Postgres 12.4) I'm unclear why deletes work when there are circular FKs between two tables and both FKs are set to ON DELETE CASCADE. CREATE TABLE a (id bigint PRIMARY KEY); ...
SDRay's user avatar
  • 61
0 votes
1 answer
189 views

I have successfully connected and obtained data from Postgresql with my C application. My connector.pgc file looks like this: #include <stdlib.h> #include <stdio.h> //#include "...
nmtcn's user avatar
  • 1
0 votes
2 answers
1k views

I'm using pg_partman to partition three of my tables and and ended up with a large number of child tables. Some users find it difficult to navigate whit their database tool (DBeaver or SQuirreL) with ...
Mohamed BOUAKKAZ's user avatar
-1 votes
1 answer
2k views

I'm trying to convert geometries to images, and the functions to do so don't seem to exist. The following example is from the ST_AsRaster Docs WHich specify the requirements are Availability: 2.0.0 - ...
Douglas Gaskell's user avatar
2 votes
1 answer
791 views

I have a table like my_type | text my_box | box where my_box is of type box from the geometric types, and not from postgis. I want a way to ensure that there are no duplicate boxes across all values ...
Hoopes's user avatar
  • 4,245
2 votes
1 answer
2k views

We have postgresql12 and have a large table of size 108gb including index. Since, the query got slow, we tried partitioning the table. But this did not help. EXPLAIN (ANALYZE, COSTS, VERBOSE, ...
success malla's user avatar
2 votes
1 answer
2k views

I have a json in a PostgreSQL database and I need to extract an array not always located in same place. Problem Need to extract array choicies of a particular element name Element name is known, but ...
Camille's user avatar
  • 2,561
1 vote
2 answers
1k views

Have a table with json column, this json is quite big, so I want to filter/select only speicific nested keys. Json Example: { "title":{ "nested_1":"This is nested key ...
SergkeiM's user avatar
  • 4,188
0 votes
1 answer
1k views

CREATE TABLE destinations(code varchar(80) PRIMARY KEY, name varchar(80), updated_at varchar(80), latitude varchar(80), ...
badrik patel's user avatar
3 votes
1 answer
913 views

I have several users of our PostgreSQL (12) database who are not superusers. From the docs, it would appear that any "ordinary" user should be able to set their password to something new, ...
M. Andersen's user avatar
0 votes
2 answers
6k views

Im using postgres as my database and I have a table that has a date column. The current value in this column is 2021-04-1 17:19:08 I want to update this column's value and move the date 20 (or any ...
Tal Levi's user avatar
  • 915
1 vote
1 answer
84 views

I need indexes on some large tables to support ON DELETE CASCADE, but the size of btree indexes would be a problem. I therefore tried with BRIN, since the performance isn't critical. However, it seems ...
Rasmus's user avatar
  • 69
3 votes
2 answers
3k views

Let's try this simple example to represent the problem I'm facing. Assume this table: CREATE TABLE testing1 ( id serial NOT NULL, word text, CONSTRAINT testing1_pkey PRIMARY KEY (id) ); ...
babis21's user avatar
  • 1,960

1 2 3
4
5
13