I had PostGis installed on my machine, and somehow, some files got corrupted. I want to uninstall and reinstall PostGIS to hopefully get things working again, but I am not sure how to go about this.
I am running Windows 8.1. I've tried searching for it in the Control Panel under Programs and Features but PostGIS doesn't show up there. I've also tried in the StackBuilder but there are no uninstall options.
A Google search also turned up nothing useful.
Has anyone done this before? Is it possible to uninstall and reinstall PostGIS with doing the same for the whole Postgres?
this work for me
And for remove postgis from your database run below query
drop extension PostGIS
To check postgisis version run query in query panel
SELECT PostGIS_full_version();
Related
I recently installed Postgres 11.3 using Homebrew on MacOSX Mojave. I'd like to extend a database using TimescaleDB, also installed with Homebrew, but get the following error:
tutorial=# CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;
ERROR: could not open extension control file "/Library/PostgreSQL/11/share/postgresql/extension/timescaledb.control": No such file or directory
Looks like the command expects Postgres to be installed in /Library, but brew info postgres says it is located in /usr/local/Cellar/postgresql/11.3. Is there a way I can modify the path the command uses or change where Postgres is installed?
Figured out I had a previous version of postgres which I had not fully uninstalled.
There were a number of postgres processes running in the Activity Monitor even after brew remove postgres. I killed the one with the lowest PID, restart the computer and reinstalled postgres through Homebrew.
I can now extend databases as expected.
I would like to install PostgreSQL on windows 7. Howver I faced one problem when I am going to launch pgAdmin 4. It shows that "Fatal Error. application server could not be contacted." I tried run as Administrator, deleted file pgAdmin in AppData. Deleted python and in my path. Added PostgreAQL in my path. However due to some reason it shows the above proble. I need your help. Thank you in advance
Here is the solution that worked for me on windows 10:
Delete the pgAdmin folder from AppData C:\Users\%USERNAME%\AppData\Roaming\pgAdmin (Note: AppData is a hidden folder),
Search for "Services" with windows search, scroll down to postgres and click on "stop",
Run pgAdmin as Administrator.
Unistall existing postgresql on your computer.This should uninstall the entire applications associated with postgresql including pgadmin4. Go to your start menu and type in "pgadmin4" to show if you still have associated file.If you see any,trace the location and delete it.
You can now re-install a fresh copy of POSTGRESQL from Enterprisedb which will automatically install pgadmin4 for you. The new installation will prompt you to enter new password. Use a password you can remember since you will always need it to access the database.
I uninstalled my python IDLE and then installed the latest python IDLE. When installed it will give you an option if you should allow all programs including python to have full access to the AppData PATH choose yes and the fatal error will disappear
I'm currently installing postgresql to learn about databases. I'm new in this field so please bear with me. I use Windows 7 Home Premium and installed PostgreSQL under C:/. So it went well without errors. Now I want to create database using the cmd. So I write createdb 'databaseName' under C:/PostgreSQL/10/bin. But then it wants a password. I'm trying to type any text but it doesn't let me.
Now I searched for solutions and I'm in a circus right now. In the tutorial I'm watching, the instructor installed postgres using 'brew' and just installed a PostgreSQL GUI. Then he runs psql 'databaseName' to use psql commands.
Do I need to install postgres using 'scoop' in windows? or it is the same thing as using the installer from the web? I really don't know what to do now. I'm sorry if this sounds stupid for some of you :/
btw, I think the instructor uses Git Bash while I use cmd of windows
Okay, for windows users who installed PostgreSQL using an installer from web, you don't need to use the cmd instead use the SQL Shell provided by the PostgreSQL itself.
I am using netbeans 8.0.1 on Kubuntu (Ubuntu 14.04.1 LTS) and I just installed some netbeans updates due to having a popup telling me to. When I restarted netbeans, it wouldn't launch anymore. If I try to start it over the command line I get this Error:
Error: Could not find or load main class org.netbeans.Main
Is there a way to fix it without reinstalling it? Reconfiguring will take ages.
Just a comment about this:
Is there a way to fix it without reinstalling it? Reconfiguring will take ages.
The IDE configs are stored at ~/.netbeans/version dir, so, uless you have changed things in installation_path/etc/netbeans.conf (like netbeans_jdkhome and system properties netbeans_default_options), you should be safe to reinstall it with no problem. And, of course, you can always make a copy of the current installation.
I installed PostgreSQL using the downloadable graphic installer. I'm able to launch pgAdmin which is PostgreSQL's GUI. However, when I run which psql on the terminal, I'm not getting any path (and based on what I read here it should yield a path provided postgres successfully installed).
After looking at this Stackoverflow post, I should have done it via homebrew. Should I uninstall the PostgreSQL that I got via the graphic installer, and re-install using homebrew?
Noob here, and I appreciate your patience.
If you've installed it using Postgres.app, the path to your binary should be under /Applications/Postgres.app/. Try running this at the terminal, you can see on my system it's under /Applications/Postgres.app/Contents/MacOS/bin.
$: find /Applications/Postgres.app/ -name "psql" -print
/Applications/Postgres.app/Contents/MacOS/bin/psql
If you then want to add this to your path variable, you could use this tutorial.