Gathering data from independent databases to a central one
I need to do the following. In a LAN there are 4 postgres boxes each having a small postgres database. These servers are gathering data from the internet and insert them as records in a table in their...
View ArticleCant Instal psycopg2 on mac 10.8.2
I know there Have been a lot of similar questions asked but none address this issue as I far as I can tell. When I am trying to install the sextante plugin, or run PostGIS Manager in QGIS I receive the...
View ArticleWhy does `pg_lsclusters` not list my Postgres cluster?
I apt-get installed Postgres 9.2.4 (using PPA). I used pg_dropcluster --stop 9.2 main to remove the default database cluster, because I intended on creating a new cluster on a separate SSD volume (a...
View ArticleKeeping version history of functions in PostgreSQL
For many of my tables, I’ve added auditing triggers (based on this wiki page). It works very well and has helped me several times figure out who changed what in the system. We have a Python/Django...
View ArticleHow to convert Postgres from 32 bit to 64 bit
I would like to convert from PG 32 bit to 64 bit. I am testing with pg_upgrade (in several scenarios) but I think it cannot do that. With pg_upgrade, I can upgrade PG version 8.5 to v.9 (both of them...
View Articleforce PostgreSQL into recovery mode
I have a somewhat strange question. Is there a way to manually force PostgreSQL into recovery mode? I’ve not been able to find aything in the documentation. I’ve been working with a script monitoring a...
View ArticleError installing pgcrypto extension [closed]
I want to install the pgcrypto extension on my postgresql installation on Windows. I found that I just have to call CREATE EXTENSION pgcrypto; but I’ve got an error : Syntax error on « CREATE » LINE 1:...
View ArticleUsing PL/R for clustering geometries
I have a Postgres/PostGIS database of geography points which I’m trying to cluster; meaning I want to group and count them by proximity. I have had first success with the kmeans Postgresql extension,...
View ArticleDifficulties in createing a PostgreSQL Database
I am a very beginner with Data Base programming and I am trying to create a new postgreSQL database. I use Ubuntu 12.10 and I am having some trouble creating a local DB. First I use the if address I...
View ArticlePostgres Write Performance on Intel S3700 SSD
I’m not seeing the Postgres write performance increases I thought I would with a single SSD vs a hardware RAID 10 array of (16) 15k RPM SAS drives. I have a Dell R820 with a PERC H700 hardware RAID...
View ArticleWhy is Postgres on 64-bit CentOS 6 significantly slower than Postgres on...
We have some Postgres + PostGIS applications that run well on CentOS 6 32-bit machines. We’ve recently been testing them on CentOS 6 64-bit machines, with similar configuration (all our machines are...
View ArticleHow can I speed up PgAdmin III Queries?
I’ve been noticing that PgAdmin III isn’t as responsive as I expected it to be. For instance a query to select * ... from a table containing 20,397 rows takes 19.531 seconds in PgAdmin III and 7.383...
View ArticleQuery result with X rows discarded
In a transaction, if I select results to display to the screen, I get the message Query result with x rows discarded. How can I view those results? Something is amiss with my query and I want to see...
View ArticleI just want to make a simple loop in PostgreSQL
In the PostGIS SQL Editor, I just want to make a loop to make this function work This query is to give the UTM Zone number to one column of Global DTM raster table For Loopid = 0 to 1000, then execute...
View ArticleGrouping records by location
I want to group points together on the basis of their proximity to one another, within a certain range of proximity. I think that a good way to do this would be to parse the geometry to a new field...
View ArticleSelect empty Postgis (Postgresql) geometry column
I try to select rows in Postgis that have an empty geometry column. This works but gives me the opposite: SELECT * FROM foo where geom <> ''; And this fails: SELECT * FROM foo where geom = '';...
View Articlepostgresql service start issues
I’m attempting to build a box via Fabric on Openstack. Part of the install involves installing and running PostgreSQL. This command works fine: $ sudo service postgresql initdb This command fails: $...
View ArticleSeeting up a PostgreSQL database on another hard drive than my system one on...
I am on OS X 10.8.3, I’ve install PostgreSQL from macports, but I’ve realized that I have not enough space on my system drive for the DB I am about to populate with data. Is there a way to create new...
View ArticleBest practices for PostGIS production environments?
What PostGIS documentation have you come across that has been helpful when tuning PostGIS for a production environment? I would like to get together with my DBA to setup a Postgresql/PostGIS...
View ArticleServer doesn't listen
I try in Win7 by means of PGAdmin 3 to be connected to a host 192.168.1.8 with the virtual machine with linux. Already which time I receive the message Server doesn't listen The server doesn't accept...
View Article