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

I think pgpool 2 is doing it here

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

PostgreSQL

Hang on, i thought it did that, i think i'm getting confused with another pooler

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

PostgreSQL

https://www.pgbouncer.org/features.html

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

PostgreSQL

For example, statement pooling might be a good idea when you have a lot of connections doing single-statement (no transactions) queries

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

PostgreSQL

Then I guess the problem with HA-Proxy server, does it work with you and ur able to access it and see the dashboard?

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

PostgreSQL

Do u have a connection pooling?

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

PostgreSQL

it is on it's own, but like 50 connections made big load on the primary, and when I removed it, and accessed the primary directly, the same load happens "only" after 300 connections

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

PostgreSQL

I'm unable to properly configure HA-Proxy, it actually created more load on the server itself.
do you know any good guide for better configuration of it for Patroni?

thanks

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

PostgreSQL

Hello,
I have a cluster of pg (using patroni) at the moment PG14 we wish to upgrade to 16.

The main usage is mostly writing data (metadata and states0, and even some of selects are part of the insert/update transaction operations to determine some stages of a stateless operations.

I have many connections to the db at the peak usage of the system, that generate big load on the primary (can arrive to 200 tasks waiting).

All of the servers (three) are on "bare metal" (self managed proxmox).

The system must be responsive in few milliseconds (the lower the better) with the stateless states and metadata, so it is impossible to use MQ/Task queue and waiting for writing in bulks.

Do you know a good tool/proxy to manage such usage to reduce if possible some of the load, or better way to manage cluster of primary-primary-secondary?

Thank you

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

PostgreSQL

Did you *check* pg_stat_archiver?
Also, check if (and why) you have archive_mode = always set.
If not, maybe you have a replication slot lingering on the replica?

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

PostgreSQL

It's already implemented, but purge is for archive path how it's related to pg_wal..

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

PostgreSQL

Can you ping me personally?

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

PostgreSQL

Well not the best way, just "my" preferred way :)

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

PostgreSQL

Not sure I need to check

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

PostgreSQL

You used pg_dump, right?

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

PostgreSQL

https://www.pgpool.net/docs/pgpool-II-3.7.4/en/html/index.html

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

PostgreSQL

But this one doesn't route transactional based on whether they are read or write... so I guess still the issue here...?🤔

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

PostgreSQL

in my case there are transactions and also prepared statements.

What can be used?

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

PostgreSQL

I think haproxy is a bit unfit for "serious" setups where your proxy/pooler needs to know whether the query is read only or write

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

PostgreSQL

yes, psycopg 3 connection pool, but 4 databases on the actual server that each has connection pool on it's own

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

PostgreSQL

I checked the last archive status,it was a month ago. But I can see today wal files in archive path..

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

PostgreSQL

Why u found it difficult, I used HAproxy with Patroni, and it should implemented on a separate node other than the patroni nodes as it consume utilisation from the cpu to avoid overheads. I mean install and configure HA proxy on a separate node (Server) or vm

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

PostgreSQL

I use for myself, HA proxy for managing the read write operational and pg bouncer for user connections

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

PostgreSQL

That's right but when archive process fails it's going to keep archive segments at pg_wal directory. Other options are inactive replication slot, uncommitted two phase commit sentences or if you are setting wal_keep_size with high value

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

PostgreSQL

Probably, the exact answer was in the logs of psql or pg_restore (depending on the dump format).

I'd suggest remove the database, restore it one more time and read the logs carfully.

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

PostgreSQL

I'm currently busy doing other (paid) stuff, you can use my pointers and elaborate further on them

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

PostgreSQL

Ok, tell me the the easy steps to take the back up from another server and restore it on another one without getting any errors?

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

PostgreSQL

The best way to check in this case is to:
- pg_dump with the --schema-only flag to export only the schema (and not the data) in sql format
- start a fresh cluster with 13.12
- try to import your dump (\i <yourfile.sql> from psql)

If you get a stream of "ALTER" and "CREATE" statements then the problem lies elsewhere
If you get errors, then investigate on the line that caused it

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

PostgreSQL

Were the constraints dependent on other objects (functions, extensions, ...)?

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

PostgreSQL

Hi all,
I have taken the back up of a database from postgres 13.3 and I restored it in postgres 13.12..

But for some tables, constraints were missed(not restored in postgres 13.12)..

Anybody can help me why they are not restored?

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