English speaking PostgreSQL public chat. This group is for discussions on PostgreSQL-related topics and strives to provide best-effort support as well.
Does logical replication does the same or is that different?
Читать полностью…If with "entire contents" you mean views, indexes and so on, then yes it replicates everything
Читать полностью…Then setup normal streaming replication /w wal archive
Читать полностью…PostgreSQL Person of the Week interview with: Adam Hendel
https://postgresql.life/post/adam_hendel/
Hello, can anyone tell me the easiest way to replicate the entire postgres db including schema and other details? Are there any tools for doing that? Can it be done within a single machine with two postgres instances?
Читать полностью…Yes, you'll need to arrange a downtime after the OS switch to rebuild indexes that contain text columns.
Читать полностью…I use both, mostly the latter. dBeaver is nice because I can use it for many client DBs.
I use the Free version, leaving it behind on the various servers, in case I need to run scripts, or queries.
The upside is that I can copy my library of SQL queries over with it, and know what to run if I have to check something out. Visual reminders.
DataGrip is too big to install everywhere, and the license is really for my machine(s) and my use.
So that's how I use it. It has a ton more features and is my GOTO when I am NOT in psql on the command line.
The challenge when you work with 30yrs of clients... You have MANY DBs you've built over the decades.
And you want some level of familiar tools. I don't ONLY DO "PostgreSQL". I support a lot of different DBs.
Some written in the 1990s...
I burned through a LOT of tools at great expense over the years.
And sometimes it's not about me. It's also about the people I leave behind to manage stuff after my job is done.
But when they call me in. They don't need me installing a bunch of stuff so I can "have a look". So, I usually have my own account, and a login that gives me access to tools I am comfortable with.
YMMV (Your Mileage May Vary). But ALWAYS ask yourself. Will this be here in 10yrs?
That kind of defeats the purpose of having automation in place to do dml in production.
Читать полностью…How do you put those edit in flyway, liquibase, ansible etc? 😉
Читать полностью…I'm always using psql as a DBA, for some development of writing sql code, functions, procedures, I use any client
Читать полностью…Yes, It's for lazy users who prefer edit instead of writing proper update statement etc. Not for DBAs.
Читать полностью…Recently few of my client moved their databases from MySQL to Postgresql. There they used phpmyadmin , I know security issue is also there but as per client need I setup phppgadmin there it’s fully functional. But at the same time I tried to use features which pgadmin offers eg we can open Psql and sql query tool side by side. To obtain this feature I tried to use it through web . I did all the things bit in the end it does not work on web , although whole installation process is there that how we can access pgadmin 4on web but it’s not running , does anyone faced the same problem with pgadmin 4
Читать полностью…It has lots bugs and dashboard runs heavy queries in background. It's not used on any latency sensetive and large production databases. Also it's counter intuitive to provide it for non-DBAs who will struggle with ux. DBAs generally use psql, I don't know of any use case where anything apart from psql is needed for DBA.
Читать полностью…Replicating that way means you can switch from one db to another seamlessly and apps will not even notice the difference
Читать полностью…Thank you. Does that replicate the entire contents of the db or just the tables?
Читать полностью…I want the replication to happen as changes are made to the db
Читать полностью…You can just copy the entire pgdata folder and config files
Читать полностью…Do we need to reinstall or install new postgres binaries on rehel 8.8
Читать полностью…Hello All,
Our organization is planning to upgrade the operating system from centos 7 to Rehel 8.8. Currently, postgres 14.9 is running on centos 7.
if upgrading the OS will impact postgres functionality?
I don't use it as a dba, just for some small data in order to query the results. I was more curious about the other alternatives.
Читать полностью…If you want, you can do a "export to sql". You can open a table and play around with it, altering adding indexes and stuff, then you can obtain the sql that would be used to apply those changes.
Читать полностью…as a DBA, all u need is to use psql, no need for any clients to not overhead ur environment with unnecessary tools
Читать полностью…I'm gonna be lazy, you can keep editing your stuff manually 😎
Читать полностью…Thank you so much all for your quick and genuine advise , I loved this group and will share my experience too here
Читать полностью…Yes, you still have the various \d* commands to extract meta info about the database, but pgadmin makes it really fast and easy
Читать полностью…Editing tables interactively
Mass selection and export of data
Checking statistics and other values at a glance