drupal on postgresql vs mysql vs mariadb
Anybody using PostgreSQL with Drupal? I know MySQL is preferred for Drupal but I have an existing PostgreSQL instance running on the server. I might as well use it rather than use more resources by...
View ArticleCreating groups and members [closed]
Is this a good idea to manage members of a group like so: *Assuming members can belong to one group and no other *Simplified model Group: name someid User: name ForeignKey(Group) state #integer 0-no...
View ArticlePostgreSQL kill – Sighup pid [closed]
To reload the configuration files, we send the SIGHUP signal to the postmaster, which then passes that on to all connected backends. That’s why some people call reloading the server “sigh-up-ing”. As...
View ArticleDatabase connection failed
I am trying to connect from Arc Cataloge (version 10.1) to postgresql 9.2. But every time I try to make “Database Connection” I am getting this error: Failed to connect to the specified server....
View ArticleDisabling triggers in stored procedures
I am building a database application that uses functions and triggers. One trigger I have limits the possible data that can be put in on INSERT to make sure a record goes through a defined set of...
View Articlepgrouting – create topology from nodes?
I have a table of nodes (points) and i wish to route between the points. Its my understanding that i first need to build a pgrouting compatible topology (graph ?) that connects all the nodes using...
View ArticleCant get postgresql running on ubuntu 12.04
I ran sudo apt-get install postgresql on ubuntu 12.04. I didnt get a postgresql.config, instead I got a postgresql.config.sample and pg_hba.conf.sample. I renamed these (they installed in...
View ArticleFind closest NON interpolated point on a LINESTRING
I have a linestring and a point, I want to find the closest point on the linestring to that point. Below is a screenshot of a test I created to confirm that the various POSTGIS functions for finding...
View ArticleLooking for all points in a square around a given point in PostGIS
For a given point (x,y), I would like to find all the points in the neighborhood (defined by myRadius, a number, in meters). For now, I’m using a circle around each point, but some reason, I’d like to...
View ArticleVacuum vs Auto Vacuum
I am trying to find answers for my below few queries which will help me in fine tuning my postgres DB. I did some googling but was not able to find answer. 1) Out of vacuum or Auto vacuum which is more...
View ArticlePostgreSQL LDAP authentication
We are setting up a PostgreSQL 9.1 database at work. There are no classified data in the database, but we want to know who is doing what. We are using LDAP authentification on the network, so we would...
View Articlehbase vs postgres performance comparison? [closed]
I know that this is comparing apples to oranges, but sometimes you have to choose what to eat… I’m trying to find a rule of thumb as to the magnitudes for which to choose hbase over postgres. E.g., I...
View ArticleParameterizing SQL Views Timestamp Issue
Could Someone help me? I am having some difficulties creating KML views. I am trying this SQL: SELECT the_geom FROM lighting.history WHERE stroke_time BETWEEN %inicialtime% and %finaltime% and...
View ArticleHow to fix “Connection failed – Check settings and try again” when connecting...
I have Postgres running via Postgres.app on rails already and am trying to connect QGis to the database. PostGIS is working already. (questions already found online deal with this issue only) I do not...
View ArticleAfter subscribing to a replication set, why can't I see the replicated tables...
I’m pretty new to databases in general (about two weeks), but I’m learning fast. If I’m using the wrong terminology anywhere, let me know in the comments. Bear with me. Background The company I work...
View ArticleBenefit to keeping a record in the database, rather than deleting it, for...
So I have a client that I am building a Rails app for….I am using PostgreSQL. He made this comment about preferring to hide records, rather than delete them, and given that this is the first time I...
View ArticleRecovering a dropped column?
I have a PostgreSQL table: CREATE TABLE essays ( id serial primary key, content text ); I inserted a few rows, then ran: ALTER TABLE essays DROP COLUMN content; How can I recover the data? I’m willing...
View ArticleWhy my query works on VIEW and doesn't work on a similar table?
I have a view openstreetmapview that combines two tables with different columns. The first table is openstreetmap and the second is B. When I execute this query on the view: select this_.gid as y0_ ,...
View ArticleCould not add the specified data object to the map
I have registered the postgresql database with arcgis desktop 10.1. In ArcMap, When I try to drag and drop one of the tables to the map I get this error: Could not add the specified data object to the...
View ArticleScaling of PostGIS vs MySQL cos/sin calculations
I need to sort database rows according to GPS coordinates (or any other geographical representation). The way I’ve understood it, MySQL Spatial Indexes are too buggy at the time of writing (at least...
View Article