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

learn more… | top users | synonyms

2
votes
0answers
16 views

How to uninstall specific versions of Postgres?

On Ubuntu 14.04 I have done this to get the latest postgres: sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' wget ...
0
votes
0answers
26 views

Cannot connect remotely to either MySQL or Postgres

I am trying to connect remotely to the MySQL database on my cloud server which is configured with Ubuntu 14.04.03. However I cannot do so (details below). I can neither connect from a Windows client ...
0
votes
0answers
48 views

Sudo service <argument> stop not working

While looking through the output of service --status-all to find some programs to kill and increase my battery life I ran into a problem. I run sudo service postgresql stop and I get the stopping ...
0
votes
1answer
15 views

Postgres pg_hba.conf Configuration

I'm trying to develop a python application using Postgres. Unfortunately everytime I do a db.session.commit() I get this as an error: OperationalError: (OperationalError) fe_sendauth: no password ...
0
votes
0answers
11 views

Proper Install instruction for installing PostgreSQL on Ubuntu 14.04 LTS

I have followed the instructions on several site to install PostgreSQL on 14.04 however none have been successful. There has been different failures from unmet dependencies to simply not installing at ...
0
votes
0answers
55 views

two postgres have been installed, remove both

I have previously installed postgres 9.1 by How To Use PostgreSQL with Your Ruby on Rails Application on Ubuntu 14.04 It was installed correctly and my app was working fine, but today its not working ...
0
votes
1answer
43 views

Postgres changes file permissions to its detriment

Someone, please, please, please explain to me what the hell is going on here, and how I can fix this? I'll let my console do the talking: root@worker2:/var/run# service postgresql start * Starting ...
0
votes
1answer
37 views

PostgreSQL 9.3 not uninstalling Ubuntu 14.04

I have PostgreSQL 9.3 and 9.4 installed, now I want to uninstall 9.3 to remove conflicts I removed it using: $ sudo apt-get purge postgresql-9.3 But when I run $ ps aux|grep postgres I get this: ...
0
votes
1answer
33 views

Reinstalling Broken PostgreSQL 9.1 on Ubuntu 14.04

After upgrading Ubuntu from Precise to Trusty, I was attempting to upgrade PostgreSQL from 9.1 to 9.3 and have hit a bit of a snag. When I ran pg_upgrade in "check" mode, it complained about being ...
0
votes
1answer
86 views

postgres: unrecognized service

After reading this question I did: gsamaras@gsamaras:~$ sudo apt-get install postgresql Reading package lists... Done Building dependency tree Reading state information... Done postgresql is ...
0
votes
0answers
20 views

How to use PgAdmin?

I have installed PgAdmin III in my Ubuntu Gnome OS. How can I start using it in order to create a database? What should I give as service while connecting to a server?
0
votes
0answers
32 views

Why is Postgres running even after uninstall? How do I stop it?

I have uninstalled postgres using sudo apt-get --purge remove postgresql a few days back. I have restarted my computer quite a few times since then. But the postgres server seems to be running even ...
0
votes
1answer
84 views

Unable to remove pgadmin3 version 1.18 from Ubuntu 14.04

I am running Ubuntu 14.04 and have pgadmin3 version 1.18.1, PostgreSQL 9.4 installed. I am new to pgadmin3. I want to upgrade to pgadmin3 1.20.0. So I used sudo apt-get update sudo apt-get install ...
0
votes
1answer
36 views

Double Quotes inside Double Quotes problem for postgres sensitive database name priviliges

Having a database with case sensitive name like MyDb, if I want to use psql to grant all privileges on this database to the user 'user' I can just write: GRANT ALL PRIVILEGES ON DATABASE "MyDb" TO ...
0
votes
1answer
74 views

Can't to log in postgres account by pgAdmin

Before I changed my forgotten postgres pass using 'su - root' in command line. Then I try to connect server using pgAdmin and I get error: Error connecting to the server: FATAL: password ...
0
votes
1answer
63 views

Database / systemctl issues after switch to 15.04

I recently updated Ubuntu to 15.04. Since then, I've been having issues starting and stopping postgres and mongodb, which also affects apt-get when it tries to install or uninstall them. Here's the ...
0
votes
0answers
141 views

Installing Foreman Fails

For some reason I can't setup Foreman, after being so simple it keeps failing. It happens after I run the $ foreman-installer Everything looks great and then these two errors show up: Execution ...
0
votes
1answer
26 views

Is it possible to 'export' an installed package

I need to install a software that runs only on Ubuntu 10.04. This software uses Postgres 9.0 client, which depends on libpq5 version 9.2.4-0ppa1~lucid Version 9.2.4 is no more available on PPAs. ...
1
vote
0answers
277 views

ERROR: could not access file “$libdir/plpython2”: No such file or directory

I am running postgresql 9.4 ("PostgreSQL 9.4.4 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-14), 64-bit" ) when I am trying to create language in postgres SQL : ...
1
vote
1answer
89 views

Can't run PSQL scripts from terminal

I can't seem to run PSQL script files from my Ubuntu terminal. Specifically, when I run ./populate_ppima_db.sh melon melon I get the following output: Insert Basic Data psql: FATAL: Peer ...
0
votes
1answer
207 views

how to fix Error: Port conflict: another instance is already running

I fired two command sudo apt-get update sudo apt-get upgrade It will give me error after upgrade(after press "Y") Setting up postgresql-9.1 (9.1.19-0ubuntu0.12.04) ... * Starting ...
0
votes
0answers
154 views

PostgreSQL move data directory to home folder

i have a problem with the moving of my data directory of postgresql. I found many different ways, but none worked. The most sensible way for me was: stop postgresql copy data from old folder to new ...
4
votes
1answer
211 views

Using Expect in Bash to set the inital “postgres” user password?

Following the tutorial here: http://www.unixmen.com/install-postgresql-9-4-phppgadmin-ubuntu-14-10/ I am scripting the installation of PostgreSQL in bash but having a problem when it comes to setting ...
0
votes
2answers
205 views

Postgres 9.4 running but “service status” reports it down

Ubuntu 14.04.3 LTS and a new installation of Postgres 9.4 (with apt-get install postgresql-9.4, nothing fancy). Postgres was started with pg_ctl start by the postgres user. The status command reports ...
0
votes
0answers
37 views

Lost PostgreSQL connections after database package reinstall

I upgraded my home server from 12.04 to 14.04 which came with PostgreSQL 9.3. Unexperienced, I forgot to verify which clusters I was running. I uninstalled 8.4 and 9.1 (Aptitude classified them as ...
1
vote
1answer
768 views

can not install libpq-dev in ubuntu 14.04

I can not install libpq-dev for postgresql, i tried sudo apt-get install libpq-dev and output Building dependency tree Reading state information... Done Some packages could not be ...
0
votes
0answers
44 views

How to access PostgresSQL by Windows ODBC

I just installed odoo by standart GIT (incl. postgresSQL).It's only command-line OS. Now I need to connect with MS-Access by ODBC to the database. How do I need to configure Ubuntu 14.04 and ...
0
votes
1answer
185 views

Couldn't Excute command line PostGIS pgsql2shp

I am using postgres 9.3 with postgis 2.1 on Ubuntu 14. When I tried to dump pgsql table using pgsql2shp, I get the following error. Error: pg_wrapper: pgsql2shp was not found in ...
1
vote
1answer
101 views

Don't create default cluster in postgresql

How do I prevent postgresql-9.4 from creating default cluster (main)? I have Ubuntu 14.04, use aptitude and postresql official repository. I'm using ansible to control multiple servers and want to ...
2
votes
1answer
119 views

not able to uninstall postsql-xc

Postgressql installation was broken once I installed postgres-xc and postgres-xc-client. I tried uninstalling but not able to do it. The log of activities follows: postgres@ashUbuntu:~$ sudo apt-get ...
0
votes
1answer
304 views

postgresql installation damaged

I installed postgresql using following command on 25th following instruction on (help.ubuntu.com/community/PostgreSQL) sudo apt-get install postgres postgresql-contrib It was working fine. Then on ...
2
votes
1answer
2k views

Armitage won't start: parse error

I installed Armitage along with Metasploit and Postgresql but Armitage is not connecting. Starting Postgresql works fine sudo service postgresql start * Starting PostgreSQL 9.3 database server ...
2
votes
1answer
611 views

Enable PostGIS extension on Ubuntu 14.04.2

I have troubles enabling PostGIS extension on Ubuntu 14.04.2 and PostgreSQL 9.3. I have installed the packages with this step by step procedure. PostgreSQL and pgAdminIII seem to be installed ...
0
votes
1answer
2k views

How do I solve a “server version mismatch” with pg_dump when I need BOTH PostgreSQL servers installed?

I installed two PostgreSQL servers in my computer. One is 9.1 and the other is 9.3. I need both servers installed. When I run pg_dump, however, I get a version mismatch error: server version: 9.3.6; ...
1
vote
0answers
24 views

How do I build a deb that is fully compatible with an offical deb?

I've downloaded the source of postgresql-9.3 by doing: apt-get source postgresql-9.3 Then I've done my alteration to the configuration step and I've successfully built and tested the binaries. Now, ...
0
votes
0answers
231 views

Locale warning from Perl stops Postgres configuring

So I want to set up Postgres on a Microsoft Azure-server running Ubuntu 14.04. I need to make a cluster: user@mysystem:~$ pg_createcluster perl: warning: Setting locale failed. perl: warning: Please ...
0
votes
1answer
47 views

Which is the proper way to install postgresql [14.04]

Recently I have been trying to install a postgres server instance on 14.04 but I've run into the issue of not knowing which install I need/want. here are the different ones I've found ...
1
vote
1answer
182 views

postgres fails to uninstall

while trying to uninstall postgresql with sudo apt-get remove postgresql I received the following error message Reading package lists... Done Building dependency tree Reading state ...
0
votes
0answers
408 views

PostgreSQL functions undefined

Update: Have edited my question now after doing some more testing. I am trying to connect to a PostgreSQL server with PHP, but get the following error message: Fatal error: Call to undefined ...
0
votes
1answer
96 views

PostgreSQL User Authorization/Configuration Issues

I've installed postgresql 9.3, but can't get any users authorized. I also can't use initdb or pg_ctl. I can't find pg_hba.conf either.
0
votes
1answer
390 views

Running two PostgreSQL servers in same Ubuntu machine

Please let us know in an Ubuntu 14.04 Machine is it possible to run same PostgreSQL 9.4 Instances in same machine with different ports. We installed PostgreSQL 9.4 in two Ubuntu servers and now we ...
1
vote
0answers
89 views

package remove fail. postgresql-contrib-9.1: subprocess installed pre-removal script returned error exit status 127

Do you want to continue? [Y/n] y (Reading database ... 404522 files and directories currently installed.) Removing postgresql-contrib-9.1 (9.1.15-0ubuntu0.12.04) ... ...
0
votes
1answer
258 views

Error installing postgresql (subprocess installed post-installation script returned error exit status 64)

I'm getting an error when trying to install postgresql. I'll explain what I've found below, but here's the entire output: sudo apt-get install postgresql postgresql-contrib Reading package lists... ...
1
vote
1answer
538 views

Problems using PostgreSQL with XAMPP

I seem to have trouble getting PostgreSQL to work on XAMPP (using Lubuntu 14.02). I am new to working with both PHP, servers and databases, but I get the following error message. Fatal error: ...
0
votes
2answers
228 views

Why don't my php files work on my Apache2 server?

I am trying to get a survey (PHP files) to work on an Apache server. I tried it first with XAMPP, but then got the following error message: Fatal error: Call to undefined function ...
1
vote
1answer
101 views

Can't create username for PostgreSQL

After installing rails and trying to install PostgreSQL in the terminal (following these instructions ...
1
vote
1answer
773 views

Stopping a postgresql instance

For the sake of educational purposes I have two identical instances of postgresql running on my machine. I can easily stop the service of the instance that is running on port 5432 like this : sudo ...
1
vote
1answer
947 views

how to install pgbench?

I have postgreSQL 9.1 installed in my system. I want to run pgbench but the program is not istalled. I tried these but failed: apt-get install postgresql91-contrib no packet found apt-get install ...
0
votes
1answer
53 views

Problem occuring while executing this command sudo apt-get install postgresql postgresql-contrib

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? How to resolve this ...
8
votes
3answers
7k views

install postgres 9.4 on ubuntu 14.04-2

I need to install postgresql 9.4 server but I only can find version 9.3. wit apt. How can I install or upgrade it?