Install pgAdmin 3 without postgresql - postgresql

I try to install pgAdmin3 for postgresql 9.4 but have an error:
Could not find your PostgreSQL installation. You might need to use the
--with-pgsql=DIR configure option.
I saw some questions in this resource, for example
Building pgadmin3-1.20.0 in CentOS 7 with PostgreSQL-9.4
But I've postgresql running in Docker and have not locally installation.
Any ideas how to compile pgAdmin without postgresql installation?

Related

install pg_stat_monitor on edb advanced server

I started playing with edb advanced server and got it installed on Rocky Linux. It is working fine with no issues.
I now want to install percona pg_stat_monitor extension using dnf.
This extension is available via PostgreSQL dnf repositories.
When I install the extension via PostgreSQL dnf repositories, It installs postgres server with it as a dependency.
This results in 2 postgres instances running on my server. i.e. 1 from edb and the other from PostgreSQL.
Is there a way to fix this issue?
All I want is to install the postgres pg_stat_monitor extension on my edb Advanced server.
thanks

Install PostgreSQL 11.1 on Debian Stretch with PostgreSQL Debian (9.6)

I have a production machine running debian strecth that I do not want to mess up. I have an app that requires postgres 11 and I'm not sure about a thing. Does the installation from the official postgres debian repo install as an extra server or does it replace the existing 9.6 verssion on debian?
I have tried to dump from version 11 and restore in 9.6 but it throws an error on creation of a sequence:
psql:fas-schema.sql:125: ERROR: syntax error at or near "AS"
LINE 2: AS integer
Just need to be sure 100%
If you want to run multiple versions of PostgreSQL one the same host, you should use official packages provided by PGDG. All the currently supported versions are available.
Though, these packages are not including tools provided by the Debian project, such as pg_ctlcluster or pg_lsclusters.

Full uninstall of Postgresql 9.3.5

I installed postgresql 9.3.5 on OS X 10.9.4. I also used psql postgres to create database etc.
Ran in some issues where postgresql no longer works. The error is:
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
So I brew uninstall postgres. Tried reinstalling but keep getting same error. I looked in the /Library.... and deleted the postgresql folder. Is there a way to fully remove this thing? I'm tempted to reinstall this mac but this is not the way to learn the long way of resolving this issue.
Completely uninstall PostgreSQL 9.0.4 from Mac OSX Lion?
This should work if you had previously used brew to install postgres:
brew uninstall
Double check /usr/local/var/postgres is also gone.
If installed with EnterpriseDB, use the second answer. You might also try it as it seems to be a complete manual uninstall.
Edit: after further review, it seems this is more of an issue with Postgres on OSX where as it defaults to the local installation rather than your installation: PostgreSQL error 'Could not connect to server: No such file or directory'

server version mismatch postgresql pg_dump

I'm getting the following error when I'm trying to export my database...
pg_dump: server version: 9.3.1; pg_dump version: 9.1.11
pg_dump: aborting because of server version mismatch
The problem is I cannot update from 9.1.11 to 9.3.1 because of my ubuntu version on my client machine. I'm running Ubuntu 13.04 raring ringtail and as you can see in this distributions link the ultimate postgresql version for ubuntu is 12.04 precise pangolin.
Any possible solution? Thanks in advance!
As previously commented the solution is to use a pg_dump compatible with the server version. The alternatives are:
Run pg_dump from the server. This means you have to have a local or remote connection to server (via ssh for example)
Install later version of pg_dump. Note that even pgAdmin includes pg_dump so you don't necessarily have to install PostgreSQL package on the client.

unable to locate postgresql in etc centos

I tried installing postgresql in my server which has centos
I followed this link
I am facing few complexity here.
I could not locate postgresql file in /etc directory.
psql (8.4.13, server 9.2.4) WARNING: psql version 8.4, server version 9.2. Some psql features might not work.
How can i solve these issues. can anyone suggest me.
I could not locate postgresql file in /etc directory.
The tutorial you linked to suggests the config files are in /var/lib/pgsql/9.2/data/...
psql (8.4.13, server 9.2.4) WARNING: psql version 8.4, server version 9.2. Some psql features might not work.
You've still got the 8.4 version of psql installed. Use your package tools (rpm/yum) to see what versions of the psql client packages are installed and where the binaries are.
It's common enough to run two different versions of PG on the same machine. Obviously each needs its own data directory and port number. Also, as you've seen psql will check the version number and warn if they are different. Basic queries still work, but obviously an 8.4 version won't know about extensions introduced in 9.1 and that sort of thing.