I am using following postgres command in terminal to output very large query result into CSV format: It works just fine except its not valid CSV fo ...
I am using following postgres command in terminal to output very large query result into CSV format: It works just fine except its not valid CSV fo ...
I am try to run psql command with postgres role. (1) sudo psql -U postgres Since postgres differs from my OS username, I receive the Peer authenticat ...
And I want to know the details about template0 and template1 database ...
Among the hundreds of tables in the postgres DB, only the structure dump of tables starting with a specific name is found. Example the name of the t ...
I'm using pg package in node.js and have created my table schema: Now I'm trying to seed my database. But it kept throwing errors at me. My seed fi ...
Background I'm using PostgreSql 12.11 on Google Cloud SQL. As my database was created, I ran a few create table commands as one user and some as anot ...
I forgot my password for an older version of Postgres (I believe v14) and uninstalled it then deleted the remaining files in my program files folder. ...
Was trying to export data from vertica table to CSV file, but some data contain comma "," in values which pushed to other column. Vertica table dat ...
When setting lock_timeout 10 seconds locally on psql as shown below: SET LOCAL lock_timeout = 10000; I got the warning below on psql: WARNING: ...
I want to dump a rather large database (1 tb) using pg_dump. Problem is via vpn, it timesout. So i want to run it via nohup and have had no luck. This ...
was trying to copy whole data from vertica to postgres DB table. Vertica table has 10 column and postgres table 9 matching column, and one column from ...
I want to create a user that can only update stored procedures in redshift. The procedures are given as .sql files that start like this Hence I cre ...
I am a beginner in PostgreSQL. I have connected to postgres using sudo -u postgres psql Then I connected to 'test' database as 'postgres' user ...
Lately whenever I run psql queries in my terminal it clears the screen and adds a bunch of blank space. I feel like this has started happening since I ...
In Kubernetes, I want start a PostgreSQL pod, create database, user and grant all privileges to the database to the user. So I came up with the follow ...
I'm trying to restore a database dump from Render locally which worked fine in the past. But now I get lots of errors. The errors usually start whe ...
i have a dump file on drive z (network drive) im opening the psql from PgAdmin4 this is the command that im writeing: and this is the error that im ...
I want to get the list of last n number of table names present in a schema in a particular database. The problem is there are lots of tables and is no ...
I would like to enter a large amount of data in my file. To do this, I am thinking of using postgresql's asynchronous processing to do the query. The ...
I have this query that returns 13 rows. Now i need to use the number of rows of this query as a float for other queries. I am aware that i can use ...