Quantcast
Channel: Question and Answer » postgresql
Browsing all 1138 articles
Browse latest View live

SymmetricDS fails to start for PostgreSQL 9.2

I’m trying to get SymmetricDS up and running with PostgreSQL. I’ve followed the tutorial (almost) exactly. (I have not set up a separate node yet since, for my purposes, I need that separate node to be...

View Article


Merge two tables on partly matching column

I have below 2 tables. old_name old_value Tom1 100 Kate1 80 Jim1 70 new_name new_value Tom2 70 Kate2 100 Jim2 80 I want to make a new table look like old_name old_value new_name new_value Tom1 100 Tom2...

View Article


Cannot get my slave – replication server to start

My replication server will not start. I have followed the instructions here: http://opensourcedbms.com/dbms/setup-replication-with-postgres-9-2-on-centos-6redhat-el6fedora/ As well as several other...

View Article

Replication slave re-reading WAL on restart

I have a standard streaming replication setup going with PostgreSQL 9.1. It works fine. However, if I stop the slave cleanly (to move it or perform other maintenance) and restart it a short time later,...

View Article

Postgresql Streaming Replication – pgpool2 – failover

In my scenario I want pgpool to forward read only queries to slaves when the master goes down – I want my app to be in the “read only mode”. How do I setup pgpool to accept read only queries when...

View Article


Pgrouting functions and geoms type not found. Install failed?

I have installed a postgresql 9.1 and postgis 2.0 from source. I couldn’t launch this : # Add pgRouting launchpad repository ("stable" or "unstable") sudo add-apt-repository...

View Article

How to install PostgreSQL 9.2 with PostGIS 2.0 on Ubuntu 11.10 (or higher)?

I have read this question: Install PostGIS v2 for PostgreSQL v9.2, but it didn’t resolve my problem. I added the PostgreSQL backports PPA and installed the postgresql-9.2 package, but there is no...

View Article

postgis: difference with && operator and st_intersects

I found that there is a difference in result between using A && B operator or one of the geo functions like st_intersects(A,B) or st_overlaps(A,B) While the st_intersects or st_overlaps...

View Article


Transform an Irish grid reference (29903) into UK grid reference (27700) on...

I have an insert script to input several hundred points, however some of the points use the Irish Grid Reference system. I have separated these out however was unsure how to convert or transform? these...

View Article


What maintenance should I do for PostGres database?

I’m getting familiarized with using PostGres for ArcGIS. I’ve only ever used SQL Server. I was successful in setting up an SDE database within PostGres 9.2, but I’m not sure what type of maintenance I...

View Article

How to do a minor upgrade postgresql 9.3.0 windows to 9.3.1?

What is the recommended way to perform an upgrade from PostgreSQL 9.3.0 to 9.3.1 (minor upgrade) using the Enterprise DB built windows installer? Should I uninstall first or just install over the...

View Article

Insert a group of consistent item with foreign key but colliding with...

Is there a way to insert a group of items that are dependent but consistent between them with unique primary keys and foreign keys but that are colliding with items in database. For example, given a...

View Article

PostgreSQL 9.2 (PostGIS) performance problem

A month ago i got acquainted with PostgreSQL and only now i’ve noticed that some of my queries are pretty slow. Well, for example, i have table: CREATE TABLE sometable ( gid serial NOT NULL, geom...

View Article


PostgreSQL 9.2 – Partitioning: Constraint Exclusion on SELECT not kicking in...

My partitioned table SELECT queries include all partitioned tables even though checks are in place and constraint_exclusion = on. The insert trigger works fine and new rows are inserted into the...

View Article

Extract a LineString from LineString by two Points

I am using PostGIS2.0 and PostgreSQL9.3. I have LineString in Spatial-Ref 4326 like geom:= ST_GEOMETRYFROMTEXT('LINESTRING(60.7014631515719 56.8441322356241,60.7023117507097...

View Article


Is it possible to have run-time dynamic table updates to visualization using...

I have an idea of/have seen implementations, of dynamic map retrieval/updating using wms on openlayers by using updates to a postgis database which was hooked into geoserver and having a refresh...

View Article

Postgresql vs MySQL – Which is better for join queries & writing...

I have to design a database which will end up with 50M records in a single table(there will be other tables with lesser number of records). I’m more concerned with join queries & writing...

View Article


Postgresql function taking long time on newly restored database

I have developed one function in my PostgreSQL database. It was taking 12-15 seconds to execute. Now I have restored a new PostgreSQL 9.0 dump using following command: pg_restore -hx.x.x.x -p5432 -d...

View Article

Missing libraries when upgrading to PostGIS 2.1 and PostgreSQL 9.3.1 using...

In the process of upgrading my PostgreSQL from version 9.2.4 to 9.3.1 (via homebrew on OS X) I came across an odd problem. These are the steps I took so far PostgreSQL, PostGIS and required libraries...

View Article

PostgreSQL transaction locked database table: “idle in transaction”

I have a web application interacting with PostgreSQL (v8.4 & Centos Linux) which suddenly started locking some of the database’s tables. Still have no idea what happened, since the code is not new,...

View Article
Browsing all 1138 articles
Browse latest View live


Latest Images