PostgreSQL is a powerful, open source object-relational database system.

learn more… | top users | synonyms

5
votes
2answers
3k views

apt-get upgrade stuck on postgresql dependency

I ran sudo apt-get upgrade on my 12.04 server, and I have become stuck with a PostgreSQL dependency. The console output (of sudo apt-get -f install) is below: dpkg: dependency problems prevent ...
5
votes
2answers
524 views

Why is there a shell given to user for PostgreSQL?

cat /etc/passwd |grep postgre postgres:x:115:127:PostgreSQL administrator,,,:/var/lib/postgresql:/bin/bash apt-cache show postgresql Package: postgresql Priority: optional Section: database ...
2
votes
3answers
2k views

Unmet dependencies. Try using -f

I'm running into the following error when I'm installing any package on 12.04. Reading package lists... Done Building dependency tree Reading state information... Done You might want to run ...
1
vote
1answer
146 views

I did not install postgresql, so why do I have postgresql related binaries in 12.04?

I am going to compile postgresql from source, but the system already has postgresql related binaries such as pg_config, which gives me a lot of environment variables etc when I run it. I did not ...
0
votes
3answers
474 views

Updating problem with post-gresql 9.1

I have the following error when updating my ubuntu: $sudo apt-get upgrade [...] Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations ...
2
votes
0answers
265 views

Postgresql 8.2 service will not stop and uninstall

My system config is as follows: System (running on Amazon EC2) Ubuntu 10.04 Postgresql-8.2 installed and it is working. ubuntu@ip:~$ sudo /etc/init.d/postgresql-8.2 status: Running clusters: ...
2
votes
1answer
217 views

Remove a previously deselected package to install postgres?

So I was meant to run add-apt-repository ppa:pitti/postgresql apt-get update apt-get install postgresql libpq-dev but instead I ran without the previous two commands apt-get install postgresql ...
6
votes
3answers
3k views

How to manually restart services affected by apt upgrades?

How can I issue apt upgrades without automatically stopping/starting daemons? I'd like to manually restart services. To cite a specific example: I'll revisit a long-running machine and run sudo ...
0
votes
2answers
2k views

Postgresql - configuring as Upstart job problem

I need Postgresql configured to start with the Upstart system because I use Upstarts events to start another app which depends on pgsql to be running. This is the tutorial/script I've used: ...
0
votes
3answers
1k views

Postgres gem won't install on 12.10

I am trying to get Ruby on Rails working on my computer but the pg gem keeps failing. I have found a lot of other questions saying that you just need to use the libpq-dev package from apt and that ...
0
votes
1answer
79 views

Locating Postgres database

I am working on this new ubuntu 12.04 server and I need to work on the Postgres database which is PostGIS enabled. The problem is I am not sure how to locate the database using command line. It is ...
3
votes
1answer
71 views

juju override defaults in service

Working on the postgresql charm a bit, and I'm wondering if there is a way to supply overrides for default values in a "juju-way". In my charm that will be consuming the services provided by ...
6
votes
3answers
28k views

How do I install pgAdmin III for postgreSQL 9.2?

I have a Windows server that runs postgresql 9.2. I want to hit it using pgAdmin III from my Ubuntu 12.10 workstation box. I installed pgAdmin III from synaptic and also tried direct download from ...
0
votes
3answers
620 views

apt-get no longer works after manually deleting folders of a previously installed application

I have been struggling all weekend, to upgrade an existing postgresql database from version 8.4 to 9.1. I have (had) both versions of databases after I updated my OS from 10.0.4 to 12.04. I finally ...
0
votes
1answer
3k views

How to make psql to default to localhost?

I have the following scenario: saji@geeklap:~$ psql -U postgres psql: FATAL: Ident authentication failed for user "postgres" saji@geeklap:~$ psql -h localhost -U postgres Password for user ...
0
votes
1answer
887 views

pgAgent installation in PostgreSQL

I have installed PostgreSQL 9.1 on ubuntu 12.04 64-bit. I try to run Aplication Stack Builder and install pgAgent. At first I am asked for root password, which I provide, after I choose PostgreSQL ...
1
vote
1answer
211 views

postgreSQL installation from graphical installed

I tried to install postgreSQL on ubuntu 12.04 64-bit. I have version pgsql9.1 on my windows machine and wanted to make both installation the same with the same components. I downloaded ...
1
vote
2answers
57 views

Regarding inbuilt application PostGreSQL

In my work I need to study about FOSSology. This tool supports only in Linux. So i have installed Ubuntu version 12.10 Quantal. Through net i have come to know Ubuntu has inbuilt postgreSQL ...
0
votes
1answer
22 views

What packages do I need to install in order to bulld postgres from source?

I need to be able to build postgres-8.4.2 from source. What dependencies should I install?
1
vote
1answer
1k views

Postgresql fails to start on Ubuntu 10.04.4 LTS

I installed postgresql 9.2 from add-apt-repository ppa:pitti/postgresql using apt-get install postgresql-9.2 At the end of the install and every time I try to launch postgresql by using the following ...
4
votes
2answers
2k views

pgadmin III doesn't work due to “The server lacks instrumentation functions.”

When pgAdmin III is used to open a PostgreSQL database the following message appears. There does not seem to be any obvious package listed in the Ubuntu Software Center for this. The server lacks ...
4
votes
2answers
3k views

How to uninstall PostgreSQL installed from .run file?

I am a new Ubuntu 12.04 user and I'm using 64bit. This morning I installed Posgresql 9.2 from the graphical installer (not from Ubuntu repository) . Now I want to uninstall it, but I don't know how. ...
5
votes
2answers
12k views

Where is a postgresql 9.1 database stored in ubuntu 12.04?

I installed and created a Postgresql database on ubuntu. I then created the database using the following command: sudo su postgres createdb mydatabase However, I can't figure out where the database ...
16
votes
3answers
33k views

How do I upgrade to Postgres 9.2?

Just recently, I've read that PostgreSQL 9.2 is released. My Ubuntu 12.04 has PostgreSQL 9.1.5 installed. How can I update to 9.2 version? I tried apt-get update and apt-get upgrade but no updates for ...
8
votes
2answers
5k views

PostgreSQL 9.1 adminpack install

everywhere I see guides for postgre, it seems to be on version 8.4. In that case the instruction is: sudo -u postgres psql < /usr/share/postgresql/8.4/contrib/adminpack.sql that location doesn't ...
1
vote
1answer
3k views

Script to establish SSH tunnel and then run another program that uses the tunnel

I am running a GUI app (Gnucash) that connects to a remote Postgres database via a secure shell session. I can use the SSH -L command to tunnel a local port and then separately run Gnucash and this ...
1
vote
2answers
11k views

How to uninstall Postgresql properly?

I have messed around with the template1 database, and would like to reset everything as it was. Hence I have done a sudo apt-get purge postgresql However the next time I reinstalled it, the ...
0
votes
1answer
2k views

Deleted files not increasing available free space as reported by df -h

I am writing data munging scripts (python and bash), to munge data and import large quantities of text files into a database. I am currently in the test phase, so I am generating several K's of files ...
2
votes
1answer
2k views

I'm trying to install postgresql on 12.04, and it's just not working

I've got a new installation and I'm trying to get Postgresql working. The database was installed and I started a restoration from a dump on another machine, but that ran into problems because I had ...
1
vote
1answer
719 views

Package candidate/alternative for the python-pgsql package in 11.10

What is the package candidate or alternative for the python-pgsql (module) package in Ubuntu 11.10 ? An error indicator that could help: Error: You need to have the python-pgsql module installed to ...
1
vote
1answer
560 views

How do I start the postgreSQL service upon boot?

I am running PostgreSQL (v 8.4) on Ubuntu 10.0.4. The PG service currently starts on reboot (after I installed PG on my machine), however, I want the service to use a new data directory. ...
1
vote
2answers
1k views

apt-get -f install gives error

When I run apt-get -f install, it gives the following error: # apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting ...
2
votes
2answers
9k views

How do I install older PostgreSQL (8.4) in Ubuntu 12.04?

Well, it's the whole question. I installed 9.1 before, but I need older version now and I haven't yet found out how to do that.
5
votes
1answer
687 views

Why isn't the new “postgres” user I created showing up in User Accounts?

I just did a fresh install of Ubuntu 12.04 on a Dell Inspiron 1545, then downloaded & installed all the latest updates. Now when I create a new user postgres in the "User Accounts..." window, it ...
2
votes
2answers
4k views

Run a PostgreSQL instance locally

I'm trying to follow this tutorial, but at the beginning it says to run a postgresql instance "locally" instead of as a daemon using the following commands. $ initdb pg $ postgres -D pg & $ ...
1
vote
2answers
1k views

Creating symlink for Postgres

As a developer, I often ssh right into my local database, just to test my application before pushing my code. However, I find that every time I want to access Postgres, I have to type in ...
0
votes
2answers
973 views

How to Install PostgreSQL 8.4 on 8.04?

How can I install Postgresql 8.4 for Ubuntu Hardy 8.04 ? sudo apt-get install postgresql will install postgreSQL 8.3 I tried installing individual packages from ...
6
votes
1answer
2k views

How do i install postgresql-8.3?

I get > sudo apt-get install postgresql-8.3 Reading package lists... Done Building dependency tree Reading state information... Done Package postgresql-8.3 is not available, but is referred ...
10
votes
2answers
11k views

rails & libpq-dev nasty dependencies

I don't know if this question belongs here, but I'll take a shot. Hi. I'm running ubuntu 11.10 dual-boot with windows vista on my machine. On Ubuntu, I've installed RVM, rails gem, & PostgreSQL ...
17
votes
6answers
12k views

What is the difference between “service restart” and “service reload”

I'm trying to understand the difference between service restart [someservice] and service reload [someservice]. I understand that "restart" restarts the service whereas "reload" reloads the ...
2
votes
1answer
5k views

Packages having unmet dependencies: Broken Packages

When I try to install postgresql i get the following error: sudo apt-get install postgresql-client Some packages could not be installed. This may mean that you have requested an impossible ...
2
votes
1answer
942 views

Does libpg-java support passwordless login? [closed]

The following command runs fine, that is, doesn't ask for a password, prints no warnings or errors, and simply provides a DB prompt: $ psql -U dbuser dbname psql (8.4.10) Type "help" for help. ...
1
vote
1answer
945 views

How do I install Davical?

i'm using ubuntu 11.4 oneiric ocelot and tried to set up the Davical Server. I have installed it and added the users davical_app and davical_dba. A tutorial on ...
2
votes
2answers
2k views

Is there an Postgres ERD tool (or pgAdmin III plugin)?

Don't hold it against me, but I have a fond memory of MS SQL Server Management Studio. I could very easily generate an ERD diagram from an existing database. Tables, relationships, the works. You ...
1
vote
1answer
6k views

PostgreSQL 8.4 to 9 manual upgrade (11.04 to 11.10)

After updating 11.04 to 11.10 using 'do-release-upgrade', installer did not updated PostgreSQL 8.4 to 9 version, saying that i have to do it manually. But how? I heard many problems, for example data ...
2
votes
1answer
672 views

How do i configure postgis

PostGIS has been installed on ubuntu server 11.10... Now how do i create a database, admin user, etc.. where does it get installed ls -l /etc/...?
7
votes
2answers
3k views

What is the easiest way to install PostGIS?

What is the easiest way to install postgis on Ubuntu Server 11.10? apt-get install ...
1
vote
1answer
3k views

How do I install Postgres Graphical Installer?

I am a newbie in using Ubuntu (more precisely never used linux except the production deployment ). Now I choose to hold a grip on the system and intalled a latest 11.10 Ubuntu in my 32 bit Intel** ...
1
vote
2answers
902 views

Unable to install PostgreSQL

I am trying to install postgresql on Ubuntu. I tried installing it using the following command: apt-get install postgresql Which results in Reading package lists... Done Building dependency tree ...
-1
votes
1answer
2k views

Error uninstalling postgresql: `Sub-process /usr/bin/dpkg returned an error code (1)` [closed]

I am getting this error while executing sudo apt-get remove postgresql-8.4 E: Sub-process /usr/bin/dpkg returned an error code (1)