Bulk update of all columns in postgresql
I am wondering if postgresql has an update query somewhat like their insert values syntax. I have an updated set of data in this form currently: INSERT INTO...
View Articlepg_dump 9.2.x command does not work with pg_dump 9.2.3
This is how i used to create all the time backups of my databases with PostgreSQL 9.2.x: pg_dump -Fc -Z 6 -U postgres mydatabase > 2013-xx-xx_xxxxx.db However on a machine where PostgreSQL with...
View Articlelooking for a postgresql load emulation client
Is there any load emulation client for postgresql like mysqlslap? And is there any good monitoring tool for postgresql database server? Thanks
View ArticleImport raster data from postgis and publish in geoserver
I am using geoserver 2.3.3, PostGIS 2.1 and PostgreSQl 9.1. The Image Mosaic JDBC extension is also installed correctly. I am trying to import raster data from PostGIS and publish in Geoserver but...
View Articlehow to identify EPSG of any shapefile [duplicate]
This question already has an answer here: Shapefile PRJ to PostGIS SRID lookup table? 6 answers
View Articlepg_ctl start gives FATAL: role does not exist
On my system, whoami returns Dan. I run initdb with the --username=PgUser argument. Then as OS user Dan I run pg_ctl start on the newly-initialized cluster, and it gives this output: LOG: database...
View ArticlePostgres wont shutdown due to wal archiving
I commanded Postgres to shutdown using the init.d scripts (Linux) over 18h ago. I can still see the processes running: -bash-3.2$ ps -fe | grep postg postgres 2299 3265 0 16:06 pts/5 00:00:00 ps -fe...
View Articleshowing locks from all postgres relations
I’m trying to show all locks (DBMS-wide) in Postgres. I initially tried adapting the documented example to: SELECT pg_database.datname AS database, relation::regclass, pg_locks.database AS db_oid,...
View ArticleWill the PHP filter prevent SQL injection attacks?
I had trouble getting the form API to work though I am considering re doing all my forms with it. I have some custom html/php forms however I directly insert into the DB using pg_query. I am looking...
View ArticleRestoring SQL_ASCII dumps to a UTF8-encoded database
I’ve got a Postgres 8.4 environment where the encoding on all our databases is set to SQL_ASCII – We’re finally migrating to Postgres 9.2, and I would like to migrate everything over to UTF8 encoding....
View ArticlePoints to paths
I have a set of lat/long points which represent positions along a set of paths (the points are generated by satellite collars on several animals that we are tracking), and I want to link the points...
View ArticleHow do I insert a row which contains a foreign key?
Using PostgreSQL v9.1. I have the following tables: CREATE TABLE foo ( id BIGSERIAL NOT NULL UNIQUE PRIMARY KEY, type VARCHAR(60) NOT NULL UNIQUE ); CREATE TABLE bar ( id BIGSERIAL NOT NULL UNIQUE...
View ArticleFatal error: Call to undefined function pg_connect() in /var/www
I have seen this error online, I have followed the online instructions. However when i do this and restart wamp it wont load up, it stays amber, as soon as i recomment in the lines and restart wamp...
View ArticleHOW TO Spatial clustering with PostGIS
Guys does anyone know how to find a simple HOW TO document about spatial clustering with PostGis? I know an extension for k-means clustering, but I can’t figure out how to implement it. I want to...
View ArticleAdvice on scripting a “whitewashed” and downsized development db from main db
Currently we (an active opensource project) have a large PostgreSQL production database which contains all the site records. Since we can’t just allow every developer or contributor access to the...
View ArticleIs PostgreSQL appropriate for processing this large but simple dataset? [closed]
I have a dataset I’m not sure how to store. The structure is simple: 30 numeric attributes identified by about 15 billion x, y, and t values. We’re expecting ~17k t values and maybe 90k x/y...
View ArticleHow can I generate TPC-DS queries for PostgreSQL?
All, I am using TPC-DS to run some benchmarks on a few versions of postgres that I have. I noticed that there is no template for generating the TPC-DS queries with the target database as postgres. The...
View ArticleWhat is postgres and why is it running on my system?
Upon every login to my computer, I notice in Activity Monitor I have several instances of a process called “postgres” running, under the user “postgres”. What is this, and why does it launch every time...
View ArticlePolygon dynamic grid creation for a shape file
I have used QGIS Vector->ResearchTools-> Vector Grid to create a 1lat x 1 long grid for the landpolygon shape file (from osm). Now, I am interested in creating dynamic grid for the original...
View Articlehow to export postgresql database table into mysql
I am trying to get data from a Postgres database, but I am totally new to using Postgres. I am here to ask my question to get some ideas from the best answer on how can I can do this. If possible, I’d...
View Article