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

Postgres books for a Sql Server DBA [closed]

I have a team of Sql Server DBAs and Architects. One of our newer teams is building a product exclusively on Postgres. Now, I need to make sure that we have the knowledge base to support this project....

View Article


Why isn't postgres prompting me about a new user?

I’m following these instructions to get postgres working with rails on Windows 7: Run “Start Command Prompt with Ruby” then… createuser -U postgres -P NewUserName When it prompts for a password for new...

View Article


CREATE Script for Enterprise Geodatabase?

I have an ArcGIS For Desktop license, and we have a PostgreSQL 9.2/PostGIS 2 database server running in our network. We currently use Query Layers to add the PostgreSQL data to ArcMap sessions. We...

View Article

Full text search on multiple tables in PostgreSQL

I have several tables that have related data. I want to have a search input box on the dashboard of the system that will search for anything (client, invoice, delivery note, …). Is it possible to have...

View Article

How to show a selected area of a map in openlayers as we get in geonetwork

I have created a map using openlayers where user can select area on map, on this selected area user can see some result with the help of wfs openlayers, but I want to increase the size of the selected...

View Article


Can't install PostgreSQL 9.2 on Linux Mint

I’m new with Linux systems. I tried to install PostgreSQL 9.2. I did the following: sudo apt-get update sudo apt-get -y install python-software-properties sudo add-apt-repository ppa:pitti/postgresql...

View Article

Building SQL statement in javascript and casting variables as strings

I’m working with Postgres 8.3/PostGIS which is storing some polygons. I’m writing a javascript function which will take in a parameter of a watershed id from another function. The javascript will build...

View Article

PostgreSQL indeterminate ordering of results [on hold]

When I have this query: SELECT DISTINCT "spree_products".id FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" =...

View Article


pg_dump format => custom vs sql

There are 2 main formats for pg_dump: custom vs sql. For custom, it’s compressed by default, and not readable if you try to open it. But is it faster to dump into this format as opposed to SQL format....

View Article


Streaming replication setup, sane setup?

Not being a DBA as main profession, I would like to know if the following assumptions are true. I have been searching the net for days and I think I have understand it correctly, but I would like to...

View Article

How to dump PostgreSQL database whose owner has no password?

First, some background on my setup: The server has root access disabled. So, I log-in as (say) john who also belongs to the sudo group and is therefore able to run superuser commands. I created a new...

View Article

Replicating from master to slaves and from slaves to master

I have a master and multiple slave machines. All SQL operations on the master node should be sent to the slave nodes. But the tables on the slave nodes may also be written to locally. These local...

View Article

Postgis csv and error loading into mysql

I want to load spatial data into mysql using a csv i have generated from a postgres table and when loading it into mysql database using phpmyadmin it complains Cannot get geometry object from data you...

View Article


Image may be NSFW.
Clik here to view.

Percentage of polygon in one shapefile within polygon of another

I’m a newbie, apologies if this is obvious/has already been asked and answered but I couldn’t find anything. I have two shapefiles: 1. an administrative boundary layer for a county in the UK known as...

View Article

What data type is “Date” in Postgres?

I don’t have access to a client database, but need to know how a “Date” CCK field stores its information. I’m using MySQL, and this easily found in the structure of the table. Anyone use Postgres and...

View Article


Forgotten PostgreSQL Windows password

This morning I’ve been trying to connect the Postgresql database on my Windows 7 professional desktop. The default value is ‘postgres’, but sure enough I forgot what password I used when I originally...

View Article

How to drop inheritance?

I am new to PostgreSQL. The situation I have is someone created a child table inherits from the parent table. And dropped the child table. But the parent table still has the “down arrow” sign on it. I...

View Article


PostgreSQL maintenance

I am new to PostgreSQL and want to know more about maintenance options in pgAdmin III. I’ve read the documentation and now I know that vacuuming frees some space and I need to run it regularly....

View Article

Setting up binary replication between two PostgreSQL instances

I have two virtual machines: dbrepa (-.175) and dbrepb (-.191). Both have PostgreSQL 9.2 installed; once PG was installed (never initialized) on dbrepa, dbrepb was made as a clone. I need to have the...

View Article

How to import a text file with '|' delimited data to PostgreSQL database?...

I have a text file with | delimited data that I want to import to a table in PostgreSQL database. PgAdminIII only exports CSV files. I converted the file to a CSV file using MS excel but still was...

View Article
Browsing all 1138 articles
Browse latest View live