A few days ago my hard drive stop working but I was able to retrieve most of the information. I had PostgreSQL 10 installed with several databases.
I have installed PostgreSQL in my new hard drive (Windows 10) and I have the data folder from my previous hard drive in an external drive.
In the installation I selected the old data folder as the current data folder, but keeping it in the external drive. When I start pgadmin 4 I can see all the databases I had just fine.
When I try to retrieve information from a table pgadmin 4 shows the following message: > ERROR: could no access file «$libdir/postgis-2.4»: No such file or directory
SQL state: 58P01
I can't find the bundle for postgis version 2.4, and I've installed postgis 3 but it doesn't work.
Can anyone tell me where to find the postgis 2.4 bundle for windows or if there is a way to import postgis from my old installation in the other hard drive?
Thanks!
I installed the bundle for version 2.4.4 and it worked fine. The problem was that I had installed postgis 3.0 before.
Related
I have been using Windows 10 operating system. I want to use slony master-slave setup with postgresql. For this, I have downloaded enterprise database 13.1 version. After installation I select slony download from stackbuilder plus. Then I copied these 2 files to offline windows 10 machine. I install both of them. After that, i try to run a simple slonik script to setup master. while executing "init cluster" command i get file not found error, c:servershare/slony1_base.2.8.sql. Do you have an idea for the solution?
After setting SLONY_SHARE_DIR to the location that the slony1 .sql files are in, everything works fine.
Using Delphi 10.3.3 I need to access a Postgress database on a remote server. I am trying using FireDac. I am not able to connect to the remote database, so I thought to create a testprog and a local PostgreSQL-database first. So I installed PostgreSQL 32 bit on my machine. Copied the libpq.dll to the same location as my exe, copied the libpq.dll to Windows\System32 as well. Checked the PATH, System32 is there. But still I get "Cannot load vendor library (libpq.dll). The specified module could not be found"
I tried 64 bit versions as well, I found different versions of the libpq.dll which I tried without success.
Do you have any experience in how to solve this ?
If you have the latest libpq.dll, does the remote database version matter ? I am new to PostgreSQL, how can I find the version ?
Just libpq.dll is not enough, you need other DLLs. You will find the full list here.
We're running out of room on our hard drive, and we're forced to move our postgis database to a new linux redhat machine. When our IT person copies the directories over to the new machine, I assume the entire database structure won't copy over perfectly.
We are running Red Hat 6 on the old and new machine. The postgresql version is 9.4.9 and the postgis version is 2.1.8.
Do you have suggestions for steps to take to successfully move our postgis-enabled PostgreSQL database to the new machine, keeping of course all data, structure, tables, etc.
I have seen some tutorials on this, but nothing really recent online.
Thanks for any help!
If the architecture is the same on both machines (e.g., both are x86_64), the PostgreSQL version is the same (the third digit can be different) and the RedHat version is the same (so that the same version of glibc guarantees that the collations are the same), you can simply copy the data directory (and all tablespaces) to the new machine and you are good.
Otherwise, use pg_dumpall to dump the old cluster and restore to the new machine.
First i installed Odoo 9.0-20160923 openerp on my windows it installs PostgreSql and Odoo files along with it successfully and it was perfectly working too, for some reason i didn't want this version so i just uninstalled Odoo 9.0-20160923
successfully from Program and Features and didn't uninstall the PostgreSql and then hard delete Odoo 9.0-20160923 directory from C:\Program Files (x86)\Odoo 9.0-20160923 too, Afterwards I successfully installed the Odoo 8.0 which only installs the Odoo files not the PostgreSql files now When i run the Openerp from browser it shows me the Internal Server Error as you may see in the attached image what is the actual problem Kindly suggest appropriate solution to this so i can manage to run this perfectly thankyou.
I resolved this issue by getting the PostgreSQL setup and runs the uninstall process which removes all the files then i un-install the Odoo 8.0 too then i made the fresh installation of Odoo 8.0 which then ask me to install the PostgreSQL database along with it now every thing is working fine. Actually issue was originated due to the missing PostgreSQL database as i didn't un-install it properly instead i hard deleted the entire Odoo 9.0-20160923 directory in which PostgreSQL database was located which cause it to damage.
I am working in a project that uses AlFresco-4.2.c as the main program in Ubuntu 16.04, and also uses geoserver in tomcat configured with PostgreSQL.
The problem is that I have been searching for a week about how to install the postgis extension in the own postgresql of alfresco. I have searched in the official documentation of alfresco(http://docs.alfresco.com/4.0/tasks/postgresql-config.html) and other forums, but I have found nothing about extensions.
Do you know a way of installing it?
I have tried to use apt-get and the installer of DBEnterprises, but none of that worked.
I'm not sure what you've followed, but here is what I would have done.
As quickly read from the PostGis page, it's a separate extension on PostgreSQL.
So you'll need to forget about Alfresco for one second, find your local PostgreSQL installation.
It's mostly bundled by Alfresco in the alfresco folder, so e.g. /opt/alfresco-4.2.c/postgresql and the data resides /opt/alfresco-4.2.c/alf_data/postgresql.
If this doesn't work for you, just do the following:
Create a dump file from the current PostgreSQL
Install a PostgreSQL distro from Ubuntu (check the version numbers)
Install the PostGIS extension
Import the dump file