Will the pg_stat_statements view show old data if there is no transaction going?
Spiceworks Community » PostgreSQL
by spicehead-b3k51
3M ago
Hi, I am trying to write a query using pg_stat_statements to find the elapsed time of queries running in the database. I want to know if there are no transactions in the database will the view show only the old data ? When will the data get purged from the view ? I want only those queries which was running in the past few minutes(suggest me an alternate view or any method to achieve this).... Thanks in advance ..read more
Visit website
Single DB for Each User - PostGres - Design Suggesion
Spiceworks Community » PostgreSQL
by spicehead-l8kbq
6M ago
I want to know the pros and cons of Single DB For Each User Vs One DB for all users. Most of the queries in my application are user specific. Being the case, is it advised to go to single DB for each user? I want to use PostGres DB and doesnt want to move towards NOSQL. The advantage of creating one db per user 1.Smaller Tables 2. No Partioning and Join Issues 3. Helps horizontal scalablity as we can just add more servers when number of users increases. 4. May not need connection pooling as we can increase the connection and number of queries are related to one person per db will always be low ..read more
Visit website
Supported NLB (Network Load Balancer) for PostgreSQL HA
Spiceworks Community » PostgreSQL
by ZahidHaseeb
9M ago
ENVIRONMENT OS = RHEL Linux 8.x Kong API Gateway Version = 2.6 Kong API Gateway Nodes = 2 PostgreSQL Version = 15 PostgreSQL Nodes = 3 [One Leader and Two Slaves] NLB (Network Load Balancer) = HAPROXY DETAIL We have installed and configured a three nodes PostgreSQL HA at on-premises environment with the help of Patroni & ETCD. In case we reboot the Leader PostgreSQL node, One Slave node from the other two slaves become Leader node. Means the PostgreSQL HA is working fine. We have placed HAPROXY as NLB between KONG API Gateway and PostgreSQL database nodes. When any KONG API Gateway send re ..read more
Visit website
Upgradation of Postgresql from 9 to 13.7
Spiceworks Community » PostgreSQL
by spicehead-gdtjt
10M ago
Hi, I have tried to upgrade the Postgresql using these methods in Windows Server 1. using pg_dump i have taken the backup from PostgreSQL 9 2. using psql i have restored the backup file in PostgreSQL 13.7 Here i am facing a isuue of data in which postgresql 9 was having a data of 78gb in pgAdmin, when i restored it in Postgresql 13 the data is around 42gb. Is their any other methods of upgradation of Postgresql so that no data loss would effect. This postgresql is used to connect alfresco community edition 6.2 and even the solr6 is connected to it. I am facing login isuue, data isuue... Thanks ..read more
Visit website
Aurora postgresql upgrade
Spiceworks Community » PostgreSQL
by spicehead-i8izk
10M ago
i would like to know if someone encounter some challenge while doing the aurora postgresql 13.6 to aurora postgresql 14 with aws glue. and also i want to do the dms upgrade i am not able to do the snapshot of my replication instance i was wondering if someone can help me ..read more
Visit website
PostgreSQL - problem with installation on Windows Server 2016 - initialization e
Spiceworks Community » PostgreSQL
by spicehead-zgtvs
10M ago
Hey. Hey, I wanted to install PostgreSQL - the latest version on Windows Server 2016. I have all rights and unblocked .exe file. I have installed on WSVR 2019 and 2022 and no problems. Only this WSVR 2016 is giving problems after running as administrator or from CMD, so it throws Installer initialization failed error. How to solve please? Thank you ..read more
Visit website
Return an ID of an inserted row in pl/python with plpy
Spiceworks Community » PostgreSQL
by matthew-baynham
11M ago
I've written a stored procedure in PL/Python which will insert data into a table but I need to get the id value of the row I've just inserted. I've read how to do this using psycopg2 but I'm using plpy object like below. I can't see how to get a connection object with psycopg2 inside a stored procedure, because I'm not going to hard code user names and passwords into a stored procedure. Just to stress the point this pl/python is in the stored procedure, it's not the python that calls the stored procedure. Python def insert_advert(json_data): plan = plpy.prepare("INSERT INTO tbl_advert (fld_o ..read more
Visit website
Is There Any International Certification Available for PostgreSQL?
Spiceworks Community » PostgreSQL
by RobinBD
1y ago
I am just learning PostgreSQL. It seems pretty easy to me. I have worked with Oracle DB before. However just wanted to know if there is any internationally recognized certification available for PostgreSQL DBAs as we can get for Oracle and Microsoft SQLs. It would be extremely great if you can tell me about any free of charge certification for PostgreSQL. If not available then whatever you know please share with me. I am extremely interested to do a certification on PostgreSQL and get a job in any developed country as a DBA. Thanks in advance for your helps. This is my first post here in Spi ..read more
Visit website
CREATE EXTENSION pltcl; looks in the wrong folder
Spiceworks Community » PostgreSQL
by spicehead-6n3z9
1y ago
PostgreSQL version: 15.2 Operating system: Ubuntu 23.04 I install pltcl with the following command... BASH sudo apt-get install postgresql-pltcl Then I need to run is in order to create the extension is... BASH CREATE EXTENSION pltcl; But it didn't work... So now I have version 15.2 of PostgreSQL and the apt-get command did it's job correctly and installed into... BASH matthew@matthew-QEMU:~$ cd "/usr/share/postgresql/15/extension" matthew@matthew-QEMU:/usr/share/postgresql/15/extension$ ls plt* pltcl--1.0.sql pltcl.control pltclu--1.0.sql pltclu.control However the create exte ..read more
Visit website
PostgreSQL in VS Code
Spiceworks Community » PostgreSQL
by Luckbox
1y ago
I have added the postgresql extension to VS Code and connected to the postrgre database.  I can see all the tables, but it is not showing views. Also it is not grouping the tables in a sub folder.  Is there an issue with the extension or is there some other way to make the connection to see everything in the database ..read more
Visit website

Follow Spiceworks Community » PostgreSQL on FeedSpot

Continue with Google
Continue with Apple
OR