pg_sql | Unsorted

Telegram-канал pg_sql - PostgreSQL

2830

English speaking PostgreSQL public chat. This group is for discussions on PostgreSQL-related topics and strives to provide best-effort support as well.

Subscribe to a channel

PostgreSQL

https://chat.whatsapp.com/I3EPdf8Yik7FcJAQf8G3jz

Читать полностью…

PostgreSQL

Anything between a couple of seconds and a couple of days. In link/clone mode, the complexity of the schema determines how long it takes, basically.

Читать полностью…

PostgreSQL

How much downtime needed 1 tb db upgrade with pg_upgrade

Читать полностью…

PostgreSQL

Check limitations https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.Limitations

Читать полностью…

PostgreSQL

Hi
Has anyone tried replicating a postgres db from VM to Rds ?
Im aware that the streaming replication won't work since it requires physical backup restore.
Is it possible in Logical Replication? If yes anyone can guide me. Thanks in advance

Читать полностью…

PostgreSQL

im not doing delete.
im talking about insert into - will this lock the main_table? the table that i select from

Читать полностью…

PostgreSQL

table has a fk constraint on main_table

Читать полностью…

PostgreSQL

Yes, if there are constraints / foreign keys

Читать полностью…

PostgreSQL

Hi
does running insert into table from main_table can somehow create a lock on main_table?

Читать полностью…

PostgreSQL

It's for tiny databases with no real users where large downtime is affordable.

Читать полностью…

PostgreSQL

If you're going the pg_dumpall route i would suggest to export only the schema, apply the schema, check that there are no errors, and then import the data separately

Читать полностью…

PostgreSQL

Namely: a function that called a function by an extention that changed an IMMUTABLE to MUTABLE

Читать полностью…

PostgreSQL

As far as I understand, using pg_dumpall for upgrading will still be more reliable

Читать полностью…

PostgreSQL

That's why we do testing before running in production. Not so much issues these days on Linux.

Читать полностью…

PostgreSQL

Pg upgrade with link method depends on number of tables rather than db size or number of databases. On good enough hardware it can still be very fast. Crunchy article has some stats.

https://www.crunchydata.com/blog/examining-postgres-upgrades-with-pg_upgrade

Читать полностью…

PostgreSQL

Hello there, I need your help

When I’m about to finish the installation, this error shows up ( Problem running post-install step. Installation may not complete correctly
The database cluster initialisation failed. )
How can I fix this?

Читать полностью…

PostgreSQL

There's no GRANT SELECT ON ALL OBJECTS IN ALL DATABASES. You'll need to generate/write an SQL command at least for each schema in each DB.

Читать полностью…

PostgreSQL

Hi everyone can i know how to create a user with no superuser and he has only select privilege for all databases.

Читать полностью…

PostgreSQL

Logical replication should work, provided there is access to target rds from VM. AWS DMS uses same postgres logical replication under the hood.

Читать полностью…

PostgreSQL

Nope but all bets are off if it's redshift. You should ask AWS support, it's not community postgres.

Читать полностью…

PostgreSQL

then during the query on table, you won't be able to delete tuples from main_table because it would render the foreign constraint invalid

Читать полностью…

PostgreSQL

why exactly if there are constraints/fk it will require lock on the main_table?
waht about if it's redshift?

Читать полностью…

PostgreSQL

Hello and welcome to this chat. Here we discuss PostgreSQL and provide best-effort voluntary support on Postgresql issues.
If you have any question, try asking kindly, including log files, error descriptions and perhaps what you're trying to do.

- 🚫 photos and screenshots
- 🚫 spam and offtopic
- ✅ questions with log files and clear explanation of what's gone wrong

⬇️ Press the button down here ⬇️

Читать полностью…

PostgreSQL

I ran tests myself a while ago, from very small to TB range. The only measurable difference was schema complexity... I.e. how many tables in how many databases. Creating the hardlinks is essentially instant.

Читать полностью…

PostgreSQL

However, sometimes you might also benefit from dropping indexes, keys and constraints and readding them later if you have a lot of interwined tables

Читать полностью…

PostgreSQL

Thanks for the clarifications 🙏

Читать полностью…

PostgreSQL

Migrating data-only databases i've never had any issues whatsoever
Migrating databases that also implement functions and stored procedures and materialized views using said procedures, i had issues where some things were deprecated or changed and so some functions would not be valid anymore

Читать полностью…

PostgreSQL

I don't see a much trouble on this approach.
This may require a lot of attention to constraints/constraint functions/user-defined types/sequences...
Every type of that expected to be dealt with once, though.


There may be troubles at 1000 replications running in parallel. At least, I expect significant wal writing slowdowns due to 1000 decoders.
However, base-by-base approach should get rid of it.

Читать полностью…

PostgreSQL

I read somewhere that pg upgrade can cause errors, although everything was updated well in my test

Читать полностью…

PostgreSQL

Yeah but this one automates 100% of it, no need to ask the developers whenever they need to shuffle dbs around

Читать полностью…
Subscribe to a channel