Make “NOT NULL” default in Postgresql 9.2 [closed]
I use NOT NULL a lot when creating columns. Is there a way to make this default when defining columns? In other words, make column is_nullable default to NO. (I realize this would make it harder for me...
View ArticleWhat queries can I use to select data?
Which queries can I use to select the following information: How many towns are within a distance of 3km of both a road and a railway and are within 6km of the coast? And any towns that have both a...
View ArticlePublish raster dataset from register database
Now, we use 2 computers: 1 (ArcMap_Desktop_1 + ArcGis_Server) and 2 (ArcMap_Desktop_2). All data are stored in ArcMap_Desktop_2 (sde database + postgres 9.0.5). We use ArcMap_Desktop_1 for publish data...
View ArticleRun query faster, what index to use
I have a table with 85M rows : CREATE TABLE emissions_totales ( "schema_source" varchar(150), "snap" varchar(20), "gid" varchar(255), "polluant" varchar(50), "emi" float8, "numreg" varchar(3), "unites"...
View ArticleAlgorithm for finding the longest prefix
I have two tables. First one is a table with prefixes code name price 343 ek1 10 3435 nt 4 3432 ek2 2 Second is call records with phone numbers number time 834353212 10 834321242 20 834312345 30 I need...
View ArticleIssue with slony-I replication on postgres master and slave database
I have two system with OS windows 8 and windows XP. I installed the postgres plus advance server for database replication on both system. I followed this link for whole process. But there is one issue...
View ArticlePostGIS package problem on Ubuntu 12.04.2 LTS
I’ve started getting an error on Ubuntu when trying to upgrade packages: “Not all updates can be installed Run a partial upgrade, to install as many upgrades as possible” When I run a partial upgrade,...
View ArticleChange default python distribution for postgres from the system's python (to...
On an RHEL6 system, I’d like my postGIS implementation (ie my postgres/postgresql databases) to use Enthought’s Canopy distribution of python, rather than the built-in GNU’s distribution. (This is...
View ArticleInstalling postgis on postgresql 9.1 not working
I’m trying to install Postgis 2.0 on a perfectly functionig postgresql 9.1.10 database. I installed the package via: richard@srv1:/$ sudo apt-get install postgresql-9.1-postgis postgis Reading package...
View ArticleAWS + Heroku db
I have my environment on Amazon cloud (AWS-Ireland), and I’m planning on having my postgres DB hosted in Heroku. I have couple of questions regarding this setup: I know I can choose to have my Heroku...
View ArticleFirewall config prevents hibernate connecting to postgres in CentOS6.3
I have an operating environment in CentOS 6.3 that has tomcat7 and postgres9.2 installed. There is just one web application deployed in tomcat that tries to establish a connection from localhost to...
View ArticlePostfix, postges courier-imap / relay reject error on gentoo
I followed a guide to put together a server https://wiki.gentoo.org/wiki/Complete_Virtual_Mail_Server it went smooth with no real headaches. First domain works like a champ but adding a second domain,...
View ArticleWhy aren't unsigned integer types available in the top database platforms?
Databases are usually very customizable with varying data types and custom lengths. It surprises me, as I try to look for the syntax to use unsigned int types that they are not available from neither...
View ArticleHow to install PostgreSQL 9.3 in FreeBSD jail?
I configured virtual NICS using pf, and a jail for FreeBSD using qjail create pgsql-jail 192.168.0.3. When I tried to install PostgreSQL 9.3 using port collection, it shows strange message at first....
View ArticleIs the postgis layer option in qgis 2.0.1 Dufour two way? Was the spit plugin...
I am trying to install postgresql with postgis on a remotely accessed terminal only installation of ubuntu 12.04 that I want to use to connect to qgis 2.0.1 and hopefully have a two way transfer...
View ArticlePostgres log files not rotating
I have a postgres system with a hot standby server. They use the same config file. I’ve setup the log rotation to use log_rotation_size and log_rotation_age so that the master server is rotated every...
View ArticleCan PostgreSQL support integration test with some kind of throwaway overlay?
It’s a common problem to write integration tests that include a database. If the test changes the database then it could effect other tests or the next run of itself. I know that I could wrap my test...
View ArticleListing all databases in PostgreSQL [closed]
I have a basic question about PostgreSQL: When connecting to my database server via pgadmin3, I can see that there are multiple databases. For example, let’s say I can see “test”, “test1″, and...
View ArticleClip geometries in table based upon value
I have defined a view in postgres that returns a set of polygons and can be queried as follows:- SELECT wkb_geometry, grade_count FROM ng_schema.grade_count_report [sql.where] order by grade_count asc...
View ArticleHow to connect Microstation V8i to Postgresql?
I have been searching the web trying to find out if any one has connect Microstation to Postgresql, and to my surprise there has not been alot of chatter on ways to do this.. When looking at the...
View Article