How to load layers from postgis to dotspatial or sharemap viewer
I want to develop a PostGIS viewer for PostgreSQL (with SQL query editor) to visualize PostGIS layers. Which spatial library (.net C# supported) do I have to use?
View ArticleHow to schedule PostgreSQL replication?
I was reading postgresql replications solution but, even I just starting understaning how it works, another doubt has arrisen. I’ll be using postgres internal replication solution but as far as I...
View ArticleShould I keep pg_xlog on the same disk as data if using disk snapshotting?
We’re running on EBS volumes on EC2. We’re interested in leveraging EBS snapshotting for backups. However, does this mean we’d need to ensure our pg_xlog is on the same EBS volume as our data? (I...
View ArticleOptimizing bulk update performance in Postgresql
Using PG 9.1 on Ubuntu 12.04. It currently takes up to 24h for us to run a large set of UPDATE statements on a database, which are of the form: UPDATE table SET field1 = constant1, field2 = constant2,...
View Articlepostgresql backup and restore
I’m trying to backup the database I made in postgresql but it doesn’t seem to work root@localhost:/home/tests# sudo -s -u postgres postgres@localhost:/home/tests$ psql psql (8.4.17) Type "help" for...
View Articlepg_dump version mismatch on Debian
I’m running PostgreSQL on Debian Unstable/Sid. I’ve got the current versions (9.1) of postgresql, postgresql-client, postgresql-client-common (143) installed. The problem I’m having is trying to run...
View ArticleHow un-clustered is a CLUSTER USING table
I have some tables which benefit greatly from CLUSTER ON/CLUSTER USING in Postgres. Data accessed at the same time is “defragmented” into a small number of disk blocks: # CLUSTER table USING...
View ArticlePostgreSQL group roles
This is not a “group by” question. I am struggling with permissions in postgres because I apparently don’t understand how group roles work. Searching for this on SO has proven difficult because I get...
View ArticleHow to store multiple records output of a function in another function?
Normally if we get 1 output from a function then we keep it as select function name() into r; where r is the variable where we need to store the function output, if the output is 1 record. How to store...
View ArticleInstalling knn on PostgreSQL for windows
I am trying to install the extension KNN for clustering as an extension on my PostgreSQL database. I have downloaded the file http://www.pgxn.org/tag/analysis I found instructions on how to install the...
View ArticleNo way to set maximum retrieved rows in pgadmin query tool
I’m using version 1.16.1, and I can’t find a “max(imum) rows” param to tweak. Any help would be appreciated.
View ArticleHow to real-time sync local Postgres instance to Cloud Postgres
I have a local postgres database (9.2) running on Ubuntu that is constantly being written to by an application capturing sub-second data. (99.9% of the transactions are inserts). I also have a postgres...
View ArticleSQL Server fsync Options
PostgreSQL has the option to turn off fsync and synchronous commits (http://www.postgresql.org/docs/9.1/static/runtime-config-wal.html). Does SQL Server has this option somewhere?
View ArticleDoes PostgreSQL work well as a workstation-based DBMS?
I’ve been considering PostgreSQL for an application I am writing in .NET WinForms, and the app is intended to be standalone with occasional sync-ing with a web service. I plan to use Sql Server for the...
View ArticleMismatch between size computed from pg_buffercahce Vs shared_buffers in...
I have a rather naive question regarding the size of shared_buffers computed from pg_buffercache and the shared_buffers size mentioned in postgresql.conf. Based on my understanding pg_buffercache shows...
View ArticleIdentical Postgres index scan taking 5x longer on server
I have an intermediate table for managing a many-to-many relation between tables called Expert and Subject: Column | Type | Modifiers ------------+-----------------------------+----------- expert_id |...
View ArticleHow do I list all schemas in PostgreSQL?
When using PostgreSQL v9.1, how do I list all of the schemas using SQL? I was expecting something along the lines of: SELECT something FROM pg_blah;
View ArticlePostgreSQL strategies to deal with disk filling up
I’m using PostgreSQL (8.4) to store data produced by an application making frequent inserts (in the table structure described below). The database keeps growing with time and, since the newer data is...
View ArticleHow to dive into the PostgreSQL's optimizer and trace each step it takes to...
Just like the MEMO structure in SQL Server which is kind of a “paper trail” of steps the optimizer takes in optimizing the query. Does PostgreSQL have the similar structure which records steps the...
View ArticleChanging PostgreSQL port using command line
My PostgreSQL default port is 5432, I want to change default port by using command line (in Windows 7). I saw this solution before: http://stackoverflow.com/questions/187438/want-to-change-pgsql-port I...
View Article