pg_sql | Unsorted

Telegram-канал pg_sql - PostgreSQL

2806

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'm proud that I provoked that!

(But i'm upset a little, though, that it was unintentional).

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

PostgreSQL

Main point is: pg_dump(all) has horrible RPO/RTO, and when disaster strikes and you need to get back up quickly, needing to setup and dump back in loads of data can make the difference

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

PostgreSQL

I just stumbled over https://rhaas.blogspot.com/2024/10/is-pgdump-backup-tool.html

LOL Robert , *that* was quick 👏

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

PostgreSQL

Check for $http_proxy and $https_proxy in your Python testbed.

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

PostgreSQL

That sounds like a problem with your internal network. Did you set a proxy environment variable or so?

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

PostgreSQL

Reported S H [7505889847] to admins.​​​

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

PostgreSQL

Hello everyone , need help while instalation , i am trying to install postgresql14 on my rhel 7 using yum , i have followed the instructions from postgre but still i have a issue as below

[root@localhost ~]# sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpmLoaded plugins: langpacks, product-id, search-disabled-repos
Cannot open: https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm. Skipping.Error: Nothing to do

i have disabled firewall not sure what i am missing can someone please help me here

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

PostgreSQL

1) You cannot do anything good with clusters (currently).

The commodity hardware cluster are always slower than single node of the same price.
Well, it's possible to get performance gain from clusters on a low-end hardware — if you'll separate them completely. No dependencies, no links, no synchronization, and client decides where to go.
But if you didn't do that yet — perhaps, something in busyness logic prevents it, isn't it?

So, just stick to a single server. It would be faster upto a really big servers, with many hundreds of cores, tens terabytes of RAM, tens of millions IOPS.

1.5) Proxmox isn't a bare metal. Either you have a bare metal w/o proxmox, or proxmox with containers or vms.


2) All of the tasks in postgres are done by queries.
So, in order to change something — you probably would need to change queries. Or at least look at them.
In particular, if you want more performance — go and measure your queries, than start thinking about optimising them.
No silver bullet.
Just get to work and do that — measure, look at explain, change algorithms, change structures.

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

PostgreSQL

$ pg_dump -h <hostname> -U <username> -W <db_name> > dumped.sql


The -W prompt for a password.

everything under <> are things to be filled by you (without them).

that's the most simplified form if you do not need something more (e.g. query/pattern matching).

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

PostgreSQL

interesting, I'll go to check it out better.

Thank you @unfoxo and @Musty_10

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

PostgreSQL

and also a connection pooler at the same time

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

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

Especially considering the fact that pg_dump is NOT an exact copy of the data, so the chance of your recovery failing can be high with schemas that are "messy"

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

PostgreSQL

I have an exact opposite article in my drafts

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

PostgreSQL

Thanks for your help

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

PostgreSQL

No, it needs to be done specifically for postgresql?(I tested the code in python, it works fine)
Anyway, thanks for the reply, I will read more about it

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

PostgreSQL

Hi everyone
Has anyone had a problem with sending rest request to internal url? I tried pqsl_http, PLPYTHON3U. Requests are sent (for example to google.com), but not to the url inside the local network.

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

PostgreSQL

Try to fetch it with curl, then install it directly with rpm

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

PostgreSQL

Thank you makes a lot of sense

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

PostgreSQL

pg_dump -n schemaname

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

PostgreSQL

Can anybody send me the command to take the backup of one schema with data?

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

PostgreSQL

so I guess it is the best one to use here in this use case

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

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?

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