PostgreSQL

pgconfeu,
@pgconfeu@mastodon.social avatar

We plan to open our call for sponsors at 10:00 Athens time on Wednesday, May 22nd. You can already preview the sponsorship options at:

https://2024.pgconf.eu/become-sponsor/

Limited levels often sell out fast, so act quickly!

#postgresql #database #opensource #athens

clairegiordano,
@clairegiordano@hachyderm.io avatar

Hello to those of you who went to #PGDayChicago (organized by the amazing Henrietta Dombrovskaya) here are my slides.

The conference was so much fun! 🎉🐘 I was honored to give this talk & spend time w/#PostgreSQL & #Microsoft friends

🎤 Map of Amazing Postgres Extensions You Might Not Know About 🎤

#Postgres #OpenSource #database #conference

https://speakerdeck.com/clairegiordano/map-of-amazing-postgres-extensions-you-might-not-know-about-claire-giordano-pgday-chicago-2024

carlton,
@carlton@fosstodon.org avatar

@clairegiordano Great slides. Thanks for sharing! 🎁

stevenharman,
@stevenharman@ruby.social avatar

Speaking of the Roadmap, it would be fantastic if we could get the pg_repack extension added! Show your support! https://github.com/heroku/roadmap/issues/123

stevenharman,
@stevenharman@ruby.social avatar

@ascherbaum As far as I know, it's a matter of demand and priority. It's literally on the backlog, but there's a lot of other work in front of it.

ascherbaum,
@ascherbaum@mastodon.social avatar

@stevenharman As one of the maintainers I'm happy to work with them to make sure it runs properly.

ascherbaum,
@ascherbaum@mastodon.social avatar

On this day, 24 years ago, v7.0 was released.

This release brings Foreign Keys, SQL92 Join syntax (although not all join types) and unlimited query length.

Ever seen the occasional 2 MB long query? That version made it possible.

ascherbaum,
@ascherbaum@mastodon.social avatar

@anfr If you want to suffer ...

anfr,
@anfr@mastodon.social avatar

@ascherbaum

Suffering? Not really. I'm quite happy to at least understand my toolchain. And when I say understand, I mean understand.

kta,
@kta@hostux.social avatar

In database land today. Thinking through striping and mirroring on . Klara Systems has unpacked a lot of this:

... This means two things: solid state and mirrors. SSD drives provide far lower latency than conventional drives possibly can. And mirrors provide far better random access performance than RAIDz can—particularly when we’re talking about small random access ops, which can’t be effectively spread across tons of disks in a wide striped vdev...

[1] https://klarasystems.com/articles/openzfs-storage-best-practices-and-use-cases-part-3-databases-and-vms/

kta,
@kta@hostux.social avatar

Any pointers on ZFS for databases out in the wild? A favorite configuration to consider?

ferki,
@ferki@fosstodon.org avatar

@kta I've found the following an interesting read a while back on the performance and robustness considerations of running on :

https://vadosware.io/post/everything-ive-seen-on-optimizing-postgres-on-zfs-on-linux/

Happy hacking!

kevinbrill,
@kevinbrill@gamepad.club avatar

sigh The logical replication process that has been running for around 3 weeks failed upon completion last night.

ERROR: table copy could not finish transaction on publisher: FATAL: terminating connection due to idle-in-transaction timeout
SSL connection has been closed unexpectedly

Time for google I suppose and an email to our on-retainer postgres expert.

Moving billions of records from one database to another is a PITA yo.

kevinbrill,
@kevinbrill@gamepad.club avatar

@ascherbaum @argv_minus_one Full disclosure: I’m not a DBA at all. Just a software eng trying my best!

ascherbaum,
@ascherbaum@mastodon.social avatar

@kevinbrill @argv_minus_one Sounds complicated.

How many of these rows are changing? And this is logical replication, right?

Could be worth figuring out if you can copy the old rows either before, or afterwards, in chunks, but not in the same transaction.

paulox,
@paulox@fosstodon.org avatar

I'll be speaking at Posette, formerly Citus Con, a free and virtual developer conference on June 11-13, 2024 organized by PostgreSQL team at Microsoft 🐘
Save the date! 📅

CC @posetteconf

https://citusdata.com/posette/2024

Zekovski, French
@Zekovski@pouet.chapril.org avatar

Est-ce qu'il y a des postgresexuels qui peuvent m'aider ? Apparemment j'ai un problème dans ma base de données mais je n'y connais rien.

https://forum.funkwhale.audio/d/556-front-page-displays-errors/8

#PostgreSql #SQL #Help

Best_parolanto,
@Best_parolanto@mastodon.top avatar

@Zekovski bonjour, vous avez pensez à faire appel à un rebooteur ?

ciredutempsEsme,
@ciredutempsEsme@mamot.fr avatar

@Best_parolanto @Zekovski
Un robooteux ?
Hi hu. Joli

benoit, French
@benoit@ruby.social avatar

Yesterday we migrated many databases to 16.2. It went smoothly for all of them except one.
The database is used by Sidekiq for 90% of the traffic. We choose a time window outside of working hours, but still we had some traffic, and we didn't turn off pods. The database was inaccessible for 10min. Jobs rescheduled, and quickly auto-scaling was triggered. I was not able to perform ANALYZE. So requests retrying at the same time + huge disk read. 💥

esparta,
@esparta@ruby.social avatar

@benoit wow. You were brave there.

Don't get me wrong, my experience told me is usually not a good idea to rely on managed databases that much, if I had full control of the servers then it may be fine, we can do dry-runs multiple times and monitor before proceeding.

When I do not have control of the server I prefer to follow what Heroku have documented:

https://devcenter.heroku.com/articles/upgrading-heroku-postgres-databases

Basically: create an upgraded follower, sync, then switch over, drop the old leader - now the follower.

ascherbaum,
@ascherbaum@mastodon.social avatar

@esparta @benoit This is not really a issue, but how RDS handles the upgrade.

I also agree that creating a new follower and populating it with logical replication is a good choice.

Utopiageo, French
@Utopiageo@framapiaf.org avatar

Nous recherchons un administrateur de base de données / à Grenoble Alpes métropole
https://recrutement.grenoblealpesmetropole.fr/?page=advertisement_display&id=2288

Et aussi un apprenti ...
https://recrutement.grenoblealpesmetropole.fr/?page=advertisement_display&id=2334

Avec beaucoup de ❤️

kimaidou,
@kimaidou@mapstodon.space avatar
mkuhn,
@mkuhn@fosstodon.org avatar
underdarkGIS,
@underdarkGIS@fosstodon.org avatar
gjergjiramku,

What's your go to db for side projects?

From now on mine will be sqlite.

So many benefits compared to other database, where do I start from?

ascherbaum,
@ascherbaum@mastodon.social avatar

@gjergjiramku And it's mostly compatible to , once you need network connectivity or multi user...

gjergjiramku,

@ascherbaum oh yeah, but that alone will get you very far.

sqlite handles quite a bit of load

adlerweb, German
@adlerweb@social.adlerweb.info avatar

Tage Seit explodiert ist? 0.

Aber hey. Locking ist offenbar kompliziert. >_>

ascherbaum,
@ascherbaum@mastodon.social avatar

@adlerweb Was ist passiert?

ishands,
@ishands@hachyderm.io avatar

2050: In a surprising twist, after conquering the digital world, launches its own satellite (PostgresQLite) to store alien data.

ascherbaum,
@ascherbaum@mastodon.social avatar

@ishands Year of first contact with aliens is 2063, not 2050!

ascherbaum,
@ascherbaum@mastodon.social avatar

#PostgreSQL Event Calendar, Reminder:

🌐 TLE Vision and Specifics

Date: 2024-04-17T17:00:00Z - 2024-04-17T18:00:00Z
Location: online

ICS file: https://ics.postgresql.life/61eevkt2pat15mlor2gsm3reat.ics

theory,
@theory@xoxo.zone avatar

@ascherbaum stupid computers

ascherbaum,
@ascherbaum@mastodon.social avatar

@theory well, it's complicated. The script queues any changes in the event, and adds a reminder if there is enough time. But I also need to handle changes in past event, as example if a recording is added later on. That deserves a new post.

Thanks for bringing this up, will see what I can do there.

StormaticsTech,
@StormaticsTech@mastodon.social avatar

Stormatics Founder, @umairshahid, will be presenting his keynote at Postgres Conference Türkiye 2024 this week.

If you're around in the area, please come and say hello.

See you on the conference floor!

📆 Date: 18 April, 2024
📌 Venue: Havelsan Technology Campus, Mustafa Kemal, Şht. Teacher Şenay AyBÜke YalÇin, Ankara.
📄 Full Schedule: https://konferans.postgresql.org.tr/

...

ascherbaum,
@ascherbaum@mastodon.social avatar

@umairshahid @StormaticsTech Unfortunately I did not know before, and flight back is already booked. Also have to go to a wedding which is on Saturday, and @eascherbaum really wants me to drive...

umairshahid,
@umairshahid@mastodon.social avatar

@ascherbaum @StormaticsTech @eascherbaum ah, wish you had more of a notice. Next time perhaps ...

ascherbaum,
@ascherbaum@mastodon.social avatar

After dinner with the friends, a few of us walked to the place for dessert. The rest missed out!

@ Punto Gelato, Munich

clairegiordano,
@clairegiordano@hachyderm.io avatar

@ascherbaum looks quite good!

ascherbaum,
@ascherbaum@mastodon.social avatar

@clairegiordano according to the feedback it was delicious!

ascherbaum,
@ascherbaum@mastodon.social avatar

Aberlour Whisky, 14 years

@ Marriott Munich West

tomasv,
@tomasv@fosstodon.org avatar

@ascherbaum WHERE'S THE ICE CREAM?!!

ascherbaum,
@ascherbaum@mastodon.social avatar

@tomasv Here's the ice cream!

danielwestermann,
@danielwestermann@mastodon.social avatar

We're almost ready for tomorrow @pgconfde 2024.pgconf.de

anfr,
@anfr@mastodon.social avatar

@danielwestermann @pgconfde
I'm already looking forward to it.

ascherbaum,
@ascherbaum@mastodon.social avatar

@anfr @danielwestermann @pgconfde See you tomorrow!

sanityinc,
@sanityinc@hachyderm.io avatar

Periodic appreciation post for https://explain.dalibo.com/ — such a useful tool for visualising query plans!

sanityinc,
@sanityinc@hachyderm.io avatar

If you work with using sql-mode, here's a command to quickly get the plan for the current query so that you can paste it into explain.dalibo.com: https://github.com/purcell/emacs.d/blob/0088f4f7d1ee7b2667ff801b1436f5feac1cc321/lisp/init-sql.el#L47-L102

posetteconf,
@posetteconf@mastodon.social avatar

1️⃣ more day until the closes on Sun, Apr 7, 2024 @ 11:59pm PDT!

Don’t miss your shot⏰ CFP for is closing! Submit your talk proposal, you could be one of our speakers this year 🌟


https://aka.ms/posette-cfp-2024

clairegiordano,
@clairegiordano@hachyderm.io avatar

@posetteconf The hockey stick of talk proposals coming in the last few days is fun to see 🤯

If you have not yet submitted, you still have time ⏰ but don't delay, the POSETTE will close Sun Apr 7 at 11:59pm PDT

Boosts appreciated 🚀 if you have database friends, plz tell them!

What is ? It's a free & virtual developer event organized by the team at .

https://aka.ms/posette-cfp-2024

paulox,
@paulox@fosstodon.org avatar

@clairegiordano @posetteconf I've just sent a proposal ✅

K9MAX, German
@K9MAX@mastodon.k9max.de avatar

Running pg_dump produced the following error message:
pg_dump: detail: Error message from server: ERROR: invalid memory alloc request size 18446744073709551613
pg_dump: detail: Command was: COPY public.preview_cards (id, url, title, description, image_file_name, image_content_type, image_file_size, image_updated_at, type, html, .... TO stdout;

Dump File has been created but obviously without the preview card table. Any idea what causes the above error?

K9MAX,
@K9MAX@mastodon.k9max.de avatar

@michael Good morning!
This is what free -h is telling me:
total 15Gi
used 6.4Gi
free 6.2Gi
shared 1.5Gi
buff/cache 3.0Gi
available 7.4Gi

This should be enough to run a dump I guess. The worst situation would then be a corrupted table.

michael,
@michael@thms.uk avatar

@K9MAX have a look at what @nik suggested yesterday: I think their comment might be more helpful than mine:

https://toot.teckids.org/@nik/112226437317415309

xavsworld, French
@xavsworld@mas.to avatar

En cherchant un truc par hazard à propos de , j'ai appris par hazard l'existence de l'héritage des tables. À la base, c'est de quoi que je gérais manuellement.

Disons que la prochaine fois que j'ai à implémenter de quoi qui a besoin de ce tel concept, je vais probablement utiliser ça!

tshirtman,
@tshirtman@mas.to avatar

@krysztophe @xavsworld on a eu un cas du genre récemment, avec différents types d'alertes avec différents colonnes en plus de celles de la table de base, et on a utilisé le polymorphisme proposé par sqlalchemy au lieu de la feature native, mais je trouve que le résultat est un peu le même, des requêtes très complexes avec de la logique en fonction des types de toutes façons, + la complexité de déclarer/configurer correctement, si c'était a refaire je pense que je reviendrais à un "extra" JSONB.

xavsworld,
@xavsworld@mas.to avatar

@tshirtman @krysztophe Merci pour la rétroaction!😊

Je n'ai qu'effleuré le sujet, plus pour répondre à «qu'est-ce que ça fait», sans aller dans les détails des inconvénients/limitations/problèmes.

Dans mon cas, j'ai en tête une table parent et plusieurs tables enfants, pour avoir une clée unique partagé entre tout les types hérités (limités et précis dans leur nombre). Exemple: "client" ou "employé", qui héritent de "usager".

Je crois que je vais rester au SQL classique avec des jointures ;-)

hunleyd,
@hunleyd@fosstodon.org avatar

Lands Support For Incremental Backups - Phoronix https://www.phoronix.com/news/PostgreSQL-Incremental-Backups

thisismissem,
@thisismissem@hachyderm.io avatar

Anyone have a good guide handy on PostgreSQL transactions encountering deadlocks and being aborted?

#postgresql

thisismissem,
@thisismissem@hachyderm.io avatar

@caleb maybe. I'll have to look..

caleb,
@caleb@hachyderm.io avatar

@thisismissem SELECT FOR UPDATE was a bad suggestion, it won't help (if row-level locks are causing the deadlock), @tomasv is correct.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • PostgreSQL
  • DreamBathrooms
  • magazineikmin
  • InstantRegret
  • thenastyranch
  • cubers
  • Youngstown
  • ethstaker
  • slotface
  • mdbf
  • rosin
  • Durango
  • kavyap
  • GTA5RPClips
  • khanakhh
  • JUstTest
  • tacticalgear
  • ngwrru68w68
  • cisconetworking
  • modclub
  • everett
  • osvaldo12
  • normalnudes
  • provamag3
  • anitta
  • tester
  • Leos
  • megavids
  • lostlight
  • All magazines