How to start fresh with PostgreSQL on Mac? [closed] - postgresql

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed yesterday.
Improve this question
So, I did some work on my Mac with PostgreSQL about 6-7 years ago. I am trying to get back into it and am following along with a tutorial. There are two issues that I have ran into regarding my pre existing configurations.
I do not know the password I used when I originally set up PostgreSQL and the postgres user on my machine.
I installed the latest version of PostgreSQL (15) from postgresapp.com but am getting the following error message:
PostgreSQL version error
I tried steps I found on another stackoverflow question for uninstalling as well as running the following commands commands I used but this has not fixed the issue as when I install the latest version I get the same error mentioned in #2 above and the psql command still prompts me to enter a password that I do not remember.
Could someone help with providing the necessary steps to start "fresh" with PostgreSQL on mac or point me to an online resource that explains it? Everything I have found so far has not worked.

If you don't need any of the previous settings or data and you're happy to delete them, you can try deleting the entire directory that was established the first time you installed Postgres.app.
Can you open Postgres.app and look at your server settings, as in the screenshot below?
If so, that will tell you where your settings and data are being stored, For me, it's in my home directory's Application Support folder.
As long as you're 100% certain that you don't need any of your previous data and settings, you should be able to delete the entire Postgres folder. Note: this will also delete any data/settings from the current version of postgres, but it doesn't sound like that will be a problem for you.
PS: I can see two weird red squares at the bottom of my screenshot which seems like something somewhere is not correctly handling the transparent parts of the PNG.

Regarding your postgres user password, you can follow advice from this Stack Overflow question to change it. It's pretty much the same steps, but with changing the postgreSQL configuration directory path on your machine. The key to solve your problem is to login on your system as a super user or root or whatever it is. and make sure it's allowed {in your postgreSQL server configuration } to connect and login via unix socket without requiring the password.
Regarding your version issue: install both version of PostgreSQL on your machine (the old one and the v15) then follow along with the official docs to migrate your database to work on latest versions. Another approach is to use pg_dump commands which you can search for its usage and manual online on the internet.

Related

the procedure entry point sprintf_s could not be located in DLL [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
We are using windows XP SP3 version "PosReady" which is still supported by MS.
We have several old computers running on this OS.
Recently we have problem with any software using msvcrt.dll.
Constantly this message popup shows:
"the procedure entry point sprintf_s could not be located in DLL msvcrt.dll".
Tried removing and reinstalling all MS visual C++ run times but it did not help.
Any help is appreciated.
Thanks,
There was an express update pushed through Windows Update yesterday (FEB-16), that solves the issue and is listed in my installed updates as:
Security Update for Windows XP (KB4487085-v2)
So it seems the issue was in the first version of that update.
Microsoft in 4487085 states:
This update was rereleased February 15, 2019 to address a known issue that occurred when you installed the original February 12, 2019 version of the update.
and
After you install the originally released version of this security update (from February 12, 2019), applications that use the msvcrt.dll dynamic link library (DLL) do not load properly.
Uninstall the Windows XP updates that were pushed out February 12.
Windows update, via the "shield" in task bar, notified me that there were updates. I installed them and after reboot had the issue described here. So, pretty obvious what the problem was. I used "Add/Remove Programs" to uninstall the nine or so updates that were showing for that date.
Most of the updates affected .NET libraries and I think that's where the problem is. The newest MSVCRT.DLL on my system is from 2012, even when the updates were still installed, so messing with them won't help.
Ideally, MS will fix this, but if not, we're almost out of support anyway. Don't forget to disable automatic updates or the problem will come back.

How to install PgBouncer on Windows 7 (x64)

I am attempting to install PgBouncer on my computer with no success. In the installation page, im told that PgBouncer has two dependencies GNU Make 3.81+ and libevent 2.0. Never having used or heard of these two software before, Im completely lost.
I have read a little on both but have yet to find or fully understand what they actually do and how they will help me set up PgBouncer. From what I've read, PgBouncer does not come compiled for windows and I need the other two to compile it. I have searched for tutorials online but it seems that im falling into a black hole of misunderstanding.
Im looking for a simple explanation on how to install PgBouncer or how these software work with one another. Thanks.
If anyone now searches the binaries because http://winpg.jp/~saito/pgbouncer is offline now, check out my page under https://sepppenner.github.io/PgBouncerWinBinaries/. I have all the binaries from the Saito page but didn't yet succeed to build the project on my own. If anyone has ideas, don't hesitate to contact me here or on Github :)
EDIT: I'm now able to build pgbouncer for windows just having some issues with the pandoc thing (Follow https://github.com/pgbouncer/pgbouncer/issues/442). I will provide binaries soon. The instructions are already online under the page listed above :)
Im looking for a simple explanation on how to install PgBouncer
A little late, but if you use the EDB installer for PostgreSQL, as linked on postgresql.org (https://www.postgresql.org/download/windows/), you can install Stack Builder. From inside Stack Builder, PgBouncer can be installed (EDB build).
Unfortunately, it's not the latest version. Now, PgBouncer 1.17.0 is available and Stack Builder provides 1.16.1.
Personally, I don't understand why the PgBouncer project doesn't just offer a Windows build. So everybody would be able to get the latest release.
I have not messed with pgbouncer in years but have had multiple comments on what I did to solve my problem.
In the link bellow is the pgbouncer build I last used on my project. From what I remember, all you would need to do is replace the users in the config/user.txt with yours and go into config/pgbouncer.ini and change the configuration to work with your set up. To start it, just run the run.bat file or pgbouncer.exe config/pgbouncer.iniin the cmd prompt. You want to download everything in the folder.
https://drive.google.com/open?id=1f8MjdQCq-ryQBiJ85d4hABASFfR_6fA2

Install reddit on amazon webserver? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I have followed every step as given here. I installed all the servers and libraries but when I set the PostgreSQL server it hangs stating the follows on the terminal
LOG: database system was shut down at 2014-01-22 01:53:52 UTC
LOG: database system is ready to accept connections
LOG: autovacuum launcher started
What to do?
I assume you're referring to these lines:
Finally, start up the server.
$ sudo -u postgres postgres -D /usr/local/pgsql/data
If so, that starts the PostgreSQL server in blocking mode. It is running. It won't exit until told to, and that terminal won't return. It sounds like you'd prefer it to exit and keep running in the background, in which case you should use pg_ctl to start the server instead.
The bigger problem is that those instructions are pretty stupid. You shouldn't be initdb'ing a new cluster and starting a new server; you almost certainly have one installed and running. It's hard to say, since you didn't say how you installed PostgreSQL, what OS you're on, what PostgreSQL version you have, etc.
In general, though, you should be connecting to your existing PostgreSQL install. Use that, don't initdb a new one. That's why the guide you were reading says:
This section may be unnecessary on your system. Check if your installation of postgres created a default database and start scripts for you.
Since you're using a stock Ubuntu install, please start by reading the Ubuntu introduction to PostgreSQL.
Then follow the setup guide starting at "create the database".

Remove postgres user account on windows 7 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I want install postgresql (9.2 version) on my local computer (OS: windows 7)
So, in first time at install, I had some error and now, I need just uninstall old postgres, but when I am trying uninstall, I got warning message: The data directory (bla bla....) and service user account (NT AUTHORITY\NetworkService) have not been removed
Question: how to remove this old user account ?
You do not need to remove the service account if you're going to reinstall. The new install will use the existing user account. That, and the fact that multiple versions might be using it, are why any user account the installer creates isn't removed.
In any case, 9.2 doesn't use the postgres user account anymore. By default it installs as NETWORKSERVICE. This is a windows system account. You can't remove it even if you want to, and if you did it'd render your system completely nonfunctional. That uninstall message is just a leftover from when the installer used to use the postgres account, though it's still useful if you install with a non-default user account. I've reported it to EnterpriseDB as a bug.
Now, if you have an existing data directory you want to get rid of and you know it has no information of any value you should remove it or rename it so the new install doesn't try to just use the existing data directory. The data directory location is shown in the message emitted by the uninstaller.

Installing PostgreSQL on Windows Server 2008 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Trying to install PGSQL on Windows Server 2008 SP2 (not R2) x86_32.
Got errors like "Problem running post-install step. Installation may not complete correctly. Failed to start the database server" and something like that.
And also installation doesn't fill data directory - it empty.
I tried start PGSQL manually via pg_ctl(register and start) and initdb, but nothing works.
Reinstalled many times with removing postgres user via Computer Management and his folder. Again, no result.
Guys, maybe you have good manuals or experience about deploying PGSQL on Server 2008?
Anyone else running issues should read Common installation errors, Troubleshooting Installation and the Guide to reporting problems.
This known issue with some Windows systems is documented there, and advice on how to report issues with enough info to get an answer (including installer logs, etc) is also provided.
I've got solution.
http://forums.enterprisedb.com/posts/list/2448.page
Just register vbscript.dll and associate VBS files with scripting engine.