Skip to main content

Questions tagged [postgresql-9.3]

Filter by
Sorted by
Tagged with
0 votes
0 answers
58 views

I am using Postgresql version 9.2.18 on Centos Version CentOS Linux release 7.3.1611 (Core) In postgres there is a select query on a single table which is getting executed multiple times per minute. ...
user2710961's user avatar
1 vote
1 answer
445 views

I have a view stored on a foreign Postgres server (v 9.3) which pulls all of the data that was posted for the day. I have foreign tables (using postgres_fdw) stored on my local Postgres servers (...
dcbeckman's user avatar
0 votes
1 answer
34 views

CREATE OR REPLACE FUNCTION trigger_fct_tri_sv_tab_temp() RETURNS trigger AS $BODY$ BEGIN n.FLAT := UPPER(n.FLAT); RETURN NEW; end $BODY$ LANGUAGE plpgsql SECURITY DEFINER; CREATE TRIGGER ...
Anirban Sengupta's user avatar
2 votes
3 answers
1k views

I have a table like this What I am trying to achieve is weighted rating. For e.g., in this table we have five star as 3, four star as 1, three star as 1, two star as 1 and one star as 0. So the ...
Lokesh Pandey's user avatar
0 votes
1 answer
944 views

I'm trying a SQL query with the function COALESCE in PostgreSQL 9.6.17, but it produces an error: invalid syntax for type double precision: "" Example query: SELECT COALESCE(date_part('...
Иван Линюшин's user avatar
0 votes
1 answer
1k views

Hi I am working on one project and want to create a view. I am using temp table in my query. can any one let me know how we can create such view ? Following is my query, I tried using WITH..AS , but ...
humberto herrara's user avatar
2 votes
1 answer
405 views

I couldn't see any growth in table size when I added a row in the relevant table. I see the same memory space even after adding 5 rows. Could anyone please help me and explain what I'm doing wrong?
Raksha's user avatar
  • 53
0 votes
1 answer
469 views

I have a query that can run on the same data set, and sometimes it fails and sometimes it succeeds The query is generated by hive metadata service, and I can't modify it. This is a simplified version ...
lev's user avatar
  • 111
2 votes
1 answer
9k views

I need help to understand the cause of this error and how to fix it. I have a server running PostgreSQL 9.3. The cluster has around 1.000 databases. I use pgBouncer for pooling connections, and I set ...
Lisandro's user avatar
  • 123
9 votes
2 answers
11k views

Similar to this question about MySQL -- I need to find out the size of a dump file prior dumping but for a PostgreSQL Database. I could not find any reference to this in the documentation
Jose Cabrera Zuniga's user avatar
0 votes
1 answer
172 views

I have a table in which the closure_date which is represented as a character varying column. Some of the dates are saved as "43684.5708564815" and also as "2019-05-24 18:51:17". Now I need to extract ...
Aman Raparia's user avatar
3 votes
2 answers
34k views

I'm working on restoring a backup from on-premise postgresql to another postgresql database hosted in AWS (rds-aurora postgresql, serverless). The data size is 170gb of compressed data. I earlier ...
user6826691's user avatar
0 votes
0 answers
367 views

I have a Django app which uses Postgres as a database w/ the django-tenants package providing multitenant functionality. This is a migration from what was originally a single tenant database with just ...
Emile Paffard-Wray's user avatar
-1 votes
1 answer
415 views

I'm getting the following error within the PostgreSQL log file. When an external service is calling the DB for map routing, the following error appears. However, within “Login/Group Roles”,...
Snips86x's user avatar
1 vote
2 answers
6k views

Using PostgreSQL 9.3.24 Issue Just simple operation, but I don't know how to do that best simplest way. How can I display results only when sum of available_counts for same product_id is 0 and ...
genderbee's user avatar
  • 183
0 votes
3 answers
143 views

I add the Query Plan of my query. And this takes too much time to execute and give data. https://explain.depesz.com/s/4JtZ I want to reduce the execution time of this query. So require to optimize ...
Dhaduk Mitesh's user avatar
3 votes
1 answer
2k views

Issue I have a query. Working with Postgres 11.5. copy ( select "HOBIS", "NAME", "URL", "IMG URL", "PRICE ORIGINAL" from ( select distinct on ("HOBIS") ...
genderbee's user avatar
  • 183
0 votes
2 answers
385 views

Hello I have 2 tables in PostgreSQL: the 1st one "Products" id price factor1 factor2 the columns factor1 and factor2 they both are empty and I want to populate them with the data of another table ...
Carlos Delgado's user avatar
-2 votes
3 answers
59 views

Considering a simple table with id-datetime field. I want to remove all records, where datetime is smaller than some constant, but keep ids which have at least one record with bigger date. My first ...
Alex Zhukovskiy's user avatar
8 votes
2 answers
27k views

I'm trying to configure the latest pgbouncer to work with postgres 9. I can connect to my db using psql with the right password but when I use psql -p 6432 I can't connect with the error message of ...
Josh Kirby's user avatar
-1 votes
1 answer
5k views

I am getting the error of: pg_restore: [archiver (db)] Error while INITIALIZING: pg_restore: [archiver (db)] could not execute query: ERROR: unrecognized configuration parameter "...
akhilesh kedarisetty's user avatar
0 votes
1 answer
508 views

Assume I have a schema which initially have several yearly sliced data like: schema: land_price - land_price_1990 - land_price_1991 ... - land_price_2010 Now I would like to create a parent ...
natsuapo's user avatar
  • 103
0 votes
1 answer
117 views

Is it possible to combine these UPDATE queries? UPDATE myTable1 SET fld1 = myTable2.value FROM myTable2 WHERE myTable1.id = myTable2.id AND myTable2.style = 45; UPDATE myTable1 SET fld2 = myTable2....
sam's user avatar
  • 3
0 votes
1 answer
323 views

Is it possible (and sensible) to issue asynchronous UPDATEs to a postgres table? Here’s the issue. I have two process, both of which access the same table. Process “A” loads vast quantities of ...
ConanTheGerbil's user avatar
0 votes
2 answers
259 views

I'm merging databases with each other. One problem I have is that both of the database tables have the same primary keys (starting from 1, but otherwise they are different records). To solve this, I ...
Asgmch's user avatar
  • 35
0 votes
1 answer
3k views

The vacuum of two pg_catalog tables runs into the following error and stops there. found xmin X from before relfrozenxid Y during vacuum I could find a lot of discussions about this problem but ...
Eelke's user avatar
  • 1,008
2 votes
1 answer
1k views

I have a customer who is trying to set up bidirectional replication with logical replication publication/subcription model across two instances with the help of last_update_wins and reported that with ...
Ramya's user avatar
  • 445
1 vote
1 answer
4k views

I have a scenario where I have to pivot a list of rows to columns dynamically .For a particular order_number there might be several products. I want all those products to be in a separate column, ...
Sandeep's user avatar
  • 113
1 vote
1 answer
863 views

We are using a Postgres database (9.3) as our production database. It is generating huge lo objects. Due to this, the size is growing very fast. So we need to do database cleaning frequently. To ...
Suresh Dewasi's user avatar
2 votes
0 answers
67 views

Table definition: CREATE TABLE schema.mylogoperation ( id_mylogoperation serial, data DATE, myschema VARCHAR(255), column_var_2 VARCHAR(255), user VARCHAR(255), action TEXT, ...
Gabriel's user avatar
  • 153
0 votes
0 answers
497 views

recently I have created stored procedure in Postgres Sql which deals about with hashing passwords. When used via PgAdmin tool it works like a charm as stated below. I have also installed extension ...
Azer's user avatar
  • 1
0 votes
1 answer
191 views

Dearest DBA friends of Stackexchange, I am trying to write data from multiple sourcetables into a new table containing compound information that i wish to use as source for a later project. The ...
Alex Vermeulen's user avatar
1 vote
0 answers
7k views

I have 170 Alter Drop Constraint statement, 120 Truncate table, 120 Insert table and 170 Alter Add Constraint. All of these should be run in one in one script as batch script and I'm using PGADMIN IV ...
Ganesh Saragadam's user avatar
7 votes
2 answers
5k views

If I have a multi-million row table and I run a transaction that updates 50k rows, what are the performance implications of this? Assuming it's indexed correctly, it shouldn't take long, but what ...
Alexander Kleinhans's user avatar
0 votes
1 answer
493 views

I have a PostgreSQL 9.3 database, which I have to move to a new server and update to 9.6 with minimum downtime. I thought I could : on the old Postgres, activate archive_command to copy WAL to a NFS ...
Jean's user avatar
  • 107
0 votes
1 answer
609 views

I need to migrate Postgres 9.3 + PostGIS 2.1 to Postgres 10. I'm using CentOS 7.X Using pg_upgrade it should be quite straightforward, but the problem is PostGIS. Postgres 9.3 has PostGIS 2.1 ...
david.perez's user avatar
3 votes
0 answers
3k views

I am working on upgrading postgres from version 9.3 to 10. I have encountered a lot of issues along the way since the install is way more custom done than it should be (People here LOVE complex and ...
Josh Kirby's user avatar
2 votes
1 answer
6k views

I have a Postgresql 9.3 with a "mother" table containing items, and a number of "child" tables containing parts of different kinds (e.g. item "AAA" is composed of 1000 parts "P1", 800 parts "P2", 40 ...
Matthieu's user avatar
  • 239
1 vote
0 answers
81 views

I am new to EDB Replication Server and I was wondering if I can use this tool to upgrade from EDB Postgres Plus Advanced Server 9.3 to EDB Postgres Plus Advanced Server 9.6. Is this a bad idea? What ...
luckypost's user avatar
2 votes
1 answer
844 views

I am trying to add both WHERE and WHERE NOT EXISTS in same query. Below mentioned query1 is working fine, but it returns all the t1 data which does not belong to company1. So I tried query2, but no ...
Manasa Y's user avatar
  • 163
7 votes
1 answer
261 views

I'm having an issue with slow queries that is caused by the planner checking every inherited table instead of only the one with the constraint. I have a table with 0 rows called "search_result". This ...
MarceloJ's user avatar
0 votes
1 answer
844 views

I have a column type of jsonb named changes THis is the structure of my column. [["change","is_enabled",[false,true]]] I want to query within the column. I want to find all the rows that "...
noobeerp's user avatar
  • 123
1 vote
1 answer
2k views

I am trying find the nearest lang and lat from the specified lat and lang i tried the below mentioned query, in my query i have mentioned the place muscat's lat and lang ,so i want to display the ...
Schüler's user avatar
  • 453
0 votes
1 answer
86 views

I have one doubt on master to slave replication in streaming replication in postgresql. I confgured ONE Master and One Slave with streaming replication in my system If Master fails slave act as a ...
Vijay K's user avatar
1 vote
1 answer
15k views

i am working with a Postgresql database having two tables: professionals[professional_id,user_id,account_id] users[user_id email] accounts[account_id email] professionals [professional_id,...
Medo's user avatar
  • 37
1 vote
2 answers
4k views

Is there way we can get the table size and DB size growth from last one month day-wise? We are able to give the current size of DB and table size.
Ram's user avatar
  • 147
3 votes
1 answer
11k views

We are trying to killing one of DB session but not able to do it. Tried with following command getting "TRUE" after issuing command. Still we can see the session is active. select ...
Ram's user avatar
  • 147
1 vote
1 answer
17k views

I have the following table: +------+------+ |userID|Name | +------+------+ |1 |sport | +------+------+ |2 |it | +------+------+ |3 |game | +------+------+ |1 |sport | +------+----...
gogasca's user avatar
  • 133
6 votes
1 answer
3k views

I am trying to install the postgis extension on my database, which resides on a web hosting service. The problem is that the control files seem to have to be found in /package/host/localhost/postgresq-...
wfgeo's user avatar
  • 191
1 vote
1 answer
48 views

I want to fetch the student_id which is only belongs to one collage expected op 6 and 7 stud_id's so how can i do this? _id | stud_id | collage_id | university_id | active -----+---------+-------...
Schüler's user avatar
  • 453

1
2 3 4 5
12