PostgreSQL or MYSQL? - /g/ (#105793365) [Archived: 509 hours ago]

Anonymous
7/4/2025, 12:00:25 AM No.105793365
1751575531812777
1751575531812777
md5: 62999e8f551d1c678f0e1119dc1665c2๐Ÿ”
Which one is better in 2025?
Replies: >>105795087 >>105796915 >>105797047 >>105797727 >>105798064 >>105798070 >>105802664 >>105803757 >>105807189 >>105807209 >>105807362 >>105807418 >>105807760 >>105807798 >>105808558 >>105809943
Anonymous
7/4/2025, 12:05:38 AM No.105793401
Postgres
Anonymous
7/4/2025, 12:45:00 AM No.105793712
MariaDB
Replies: >>105809943
Anonymous
7/4/2025, 1:55:02 AM No.105794174
FoxPro DOS
Replies: >>105796880
Anonymous
7/4/2025, 4:04:38 AM No.105795087
>>105793365 (OP)
postgres, but for 99% of use cases sqlite is more then enough
Replies: >>105795694 >>105796214 >>105797047 >>105797646 >>105804056 >>105808572
Anonymous
7/4/2025, 5:58:00 AM No.105795694
1738859899123030
1738859899123030
md5: a97b2f8f447151313a13505323aca5df๐Ÿ”
>>105795087
What this anon said.
Anonymous
7/4/2025, 7:41:46 AM No.105796214
>>105795087
this but replace postgres with MariaDB. he probably made a typo
Replies: >>105799468 >>105804056
Anonymous
7/4/2025, 9:52:07 AM No.105796880
>>105794174
fuck no. fuck yourself.
Anonymous
7/4/2025, 9:57:24 AM No.105796915
>>105793365 (OP)
>PostgreSQL
>"The World's Most Advanced Open Source Relational Database"
>needs a bouncer in front of it otherwise it'll shit it's pants
Why can they just merge the fucking bouncer into it?
Anonymous
7/4/2025, 10:09:47 AM No.105797018
2025-05-24 090526
2025-05-24 090526
md5: 3912c5b03cc9bdd5097b7c47f258d7f6๐Ÿ”
1c ะฑyั…ะณaะปั‚epะธั
Replies: >>105798079 >>105798079 >>105798079 >>105798079 >>105798079
Anonymous
7/4/2025, 10:13:00 AM No.105797047
>>105793365 (OP)
Do you want a simple but performant db for a mostly read heavy app?
>SQLite

Do you want a simple but performant db for a write heavy app?
>MySQL

Everything else.
>Postgres

>>105795087
This. The default should be to always start with SQLite.
Replies: >>105798237 >>105807439
Anonymous
7/4/2025, 11:59:03 AM No.105797646
>>105795087
I wish there were a something with datatypes as simple as SQLite.
Anonymous
7/4/2025, 12:09:58 PM No.105797727
>>105793365 (OP)
nigger on the right
Anonymous
7/4/2025, 1:08:30 PM No.105798034
techlet here. how do apps handle with multiple concurrent attempts to write to an app from the database side of things anyway?
Replies: >>105798086 >>105799306
Anonymous
7/4/2025, 1:13:03 PM No.105798064
>>105793365 (OP)
sqlite
Anonymous
7/4/2025, 1:14:26 PM No.105798070
>>105793365 (OP)
I prefer postgres but sometimes you have to use mysql.
Anonymous
7/4/2025, 1:16:54 PM No.105798079
>>105797018
>>105797018
>>105797018
>>105797018
>>105797018
this
Anonymous
7/4/2025, 1:17:52 PM No.105798086
>>105798034
>write to an app from the database
You mean read?
Anonymous
7/4/2025, 1:21:45 PM No.105798111
MongoDB
Replies: >>105809943
Anonymous
7/4/2025, 1:43:55 PM No.105798237
>>105797047
Why would you ever choose MySQL over postgres.
Replies: >>105799008
Anonymous
7/4/2025, 3:41:27 PM No.105799008
>>105798237
WordPress
Replies: >>105799338
Anonymous
7/4/2025, 4:03:46 PM No.105799215
1742084613651561
1742084613651561
md5: a4403e036518bce04219f1ce75eff133๐Ÿ”
Replies: >>105799253
Anonymous
7/4/2025, 4:09:24 PM No.105799253
>>105799215
lmao
Anonymous
7/4/2025, 4:17:14 PM No.105799306
>>105798034
Databases are often a source of truth. 99% of the apps want to check the real state of the data from there. Multiple attempts at writing to the same exact data aren't common (i.e. sounds very rare that a bank lets you do the same transaction from two different places logged with the same account) but that's what the ACID principle is for. Usually one transaction trumps the other eventually. And whoever designs the system puts a rollback mechanism or append-only temporary log to review these conflicts, if they ever matter to the bussiness logic.
Think about Google Doc's history but with a bigger dataset. If someone shits over your changes you have a chance to use the history and handpick or even revert them.
Replies: >>105799701 >>105807289
Anonymous
7/4/2025, 4:22:55 PM No.105799338
>>105799008
No one uses Wordpress in 2025 except pajeets
Replies: >>105799471
Anonymous
7/4/2025, 4:40:24 PM No.105799468
>>105796214
MariaDB generic error. Installation can't start. Corrupted a system table for no apparent reason. Every database in the server is now inaccessible. Provides no tool to fix a corrupted installation, which shouldn't have happened in the first place.

Quality design(tm). Reliable. Truly, a battle tested RDBMS.

I earnestly recommend it to all serious, non-hobby projects, because it will not fail you at the worst possible time.
Anonymous
7/4/2025, 4:40:55 PM No.105799471
>>105799338
Stay in school
Replies: >>105800145
Anonymous
7/4/2025, 5:16:50 PM No.105799701
>>105799306
That's helpful anon. Thank you.
Anonymous
7/4/2025, 6:12:25 PM No.105800145
>>105799471
I have been working in webdev for 10 years
Anonymous
7/4/2025, 11:32:28 PM No.105802664
>>105793365 (OP)
My company does Postgres for production and sqlite for dev, I think it's a good strategy
Anonymous
7/4/2025, 11:51:00 PM No.105802795
C O L O N I S E D
O
L
O
N
I
S
E
D
Anonymous
7/5/2025, 2:07:03 AM No.105803757
1741206877003180
1741206877003180
md5: fe99ed556002f0c74b3e87b0d447ed1f๐Ÿ”
>>105793365 (OP)
For me it's MySQL. It just works. Everything supports it. We use it in production at work too.
Replies: >>105804069 >>105809943
Anonymous
7/5/2025, 2:50:02 AM No.105804056
>>105795087
Than* Learn English.
But you're right.
One thing is for sure there's no use case for MySQL or Mariadb
>>105796214
Absolute dog shit, just like mysql
Anonymous
7/5/2025, 2:51:43 AM No.105804069
>>105803757
Garbo, sqlite does all that
Replies: >>105804577
Anonymous
7/5/2025, 4:06:55 AM No.105804577
>>105804069
We get it, you're unemployed, no need to bring it up constantly.
Replies: >>105805512
Anonymous
7/5/2025, 7:08:20 AM No.105805512
>>105804577
Sqlite is the most used database system, retard
Replies: >>105809943
Anonymous
7/5/2025, 12:02:26 PM No.105806936
it doesnt matter at all
Anonymous
7/5/2025, 12:22:10 PM No.105807034
Why cant postgres into fast count though

It takes seconds to count a bigish table
Anonymous
7/5/2025, 12:51:02 PM No.105807189
>>105793365 (OP)
Lipstick on that guy is super creepy. Why he would do that?
Anonymous
7/5/2025, 12:54:22 PM No.105807209
>>105793365 (OP)
I use a custom Javascript sql emulator as a Google webapp api, it stores data in Google sheets with each sheet as a different table.
Anonymous
7/5/2025, 1:11:11 PM No.105807289
Screenshot from 2025-07-05 06-09-48
Screenshot from 2025-07-05 06-09-48
md5: a1ea86ef1103068dce7a2dd8856ae1a2๐Ÿ”
Postgres
>just use SQLite
what the fuck for? I'm build servers, not single-writer databases.
>it's simpler
nigga if you struggle to work with Postgres then are going to have a horrible time trying to build complex software.
>>105799306
this, conflicts are handled with transactions. make sure to use the correct isolation level (I default to serializable because it makes reasoning about things dead simple, which is the most important attribute when designing concurrent behaviors).
also make sure you have retry logic figured out.
also consider leaving a transaction open as a human makes a decisions based on the state of some data. if this takes too long, then you might need to re-consult data to ensure it has not changed.
Replies: >>105807436
Anonymous
7/5/2025, 1:26:56 PM No.105807362
>>105793365 (OP)
sqlite
Anonymous
7/5/2025, 1:34:30 PM No.105807418
>>105793365 (OP)
Postgres.
But it doesn't matter, what matters is your database scheme. If you design your database like shit, don't expect the RDBMS to bail you out.

For my largest project i use MySQL. Whenever i encountered performance issues, my own retardation was to blame.
Rather than watching database benchmarks, accept your own mistakes and mix them.

It's a tough pill to swallow, because switching the database layout once it's already deployed, is a huge pain.
Anonymous
7/5/2025, 1:37:03 PM No.105807436
>>105807289
>Rust troon falls for yet another current-year meme and is heavily invested in "Postgres is just faster because its the current popular opinion that it is"
A few years ago, you would have used MongoDB.
Fun fact: MySQL more performant on scale.
Replies: >>105807465
Anonymous
7/5/2025, 1:37:35 PM No.105807439
>>105797047
>write heavy
mysql is more focused on reading than writing chud
Anonymous
7/5/2025, 1:44:21 PM No.105807465
1750705633486587
1750705633486587
md5: bbbc5d4c79f1b4f1f1f271da2051c565๐Ÿ”
>>105807436
you talk an awful lot of shit
every database that I interacted with in the medical field was Postgres
imagine paying a license fee to use a database
imagine thinking Mongo would be seen as an alternative to complicated SQL queries
imagine thinking that Rust is a meme
Replies: >>105807489 >>105807527 >>105807688
Anonymous
7/5/2025, 1:49:37 PM No.105807489
>>105807465
>others use it so it must be good
SQLite is the most used database out there.
MySQL is far more popular than Postgres.
>medical field
>imagine paying a license fee
the irony

Postgres is the current shilled meme, years ago it was MongoDB, when NoSQL was all the rage and SQL was supposed to be old and deprecated.
Replies: >>105807511
Anonymous
7/5/2025, 1:54:29 PM No.105807511
>>105807489
And MongoDB vanished when they started using the SSPL, which requires corporations to release their Source Code.
Similary, MariaDB is GPL and MySQL i think also GPL but dual licensesd?

While Postgres is a cucked corpo-friendly permissive license.
The only reason why Postgres is shilled, is because big corporations are angry at others being OpenSource.
Replies: >>105807531
Anonymous
7/5/2025, 1:56:58 PM No.105807527
>>105807465
>imagine paying a license fee to use a database
You mean:
To modify OpenSource software and keeping your modifications ClosedSource.
You should be more specific and say what you want, you fucking corporate bootlicker.
Anonymous
7/5/2025, 1:57:28 PM No.105807531
>>105807511
blah blah blah nigga
Postgres is battle tested to shit, has useful features (I use synchronized replication often), and useful extensions (such as PostGIS for querying by geographic data), and just werks
you are the shill here
Replies: >>105807540 >>105807549
Anonymous
7/5/2025, 1:58:55 PM No.105807540
>>105807531
keep licking the bood of your holy corporation, cuckold

Use inferior products, simply because Mr. Shekelstein needs to keep more secrets.
Replies: >>105807566
Anonymous
7/5/2025, 1:59:56 PM No.105807549
>>105807531
>Postgres is battle tested to shit
not as much as MySQL though
Anonymous
7/5/2025, 2:02:27 PM No.105807566
>>105807540
the fuck does this even mean? you have a big obsession with corporate cock, maybe I could hire you as my secretary one day
Replies: >>105807578
Anonymous
7/5/2025, 2:03:09 PM No.105807571
>complicated SQL queries
You should not have to do "complicated SQL queries" in the first place.
Rather than doing shit and expecting from the database to eat your shit in the best performance possible... just don't do shit.
Replies: >>105807577
Anonymous
7/5/2025, 2:03:59 PM No.105807577
>>105807571
t. nocoder
Replies: >>105807585
Anonymous
7/5/2025, 2:04:10 PM No.105807578
>>105807566
>complains about the license needing payment if you want to change Open Source software and keep your changes Closed Source
>whaaat? What do you mean i am a corpo cuckold? Pfizer uses Postgres, so its good!
Anonymous
7/5/2025, 2:05:23 PM No.105807585
>>105807577
Nope.
Just someone who was confronted with "complicated queries" and who had to write 8000 lines of code in the past week to migrate to a different database scheme.
Replies: >>105807612
Anonymous
7/5/2025, 2:08:33 PM No.105807612
>>105807585
the entire point of a relational database is to allow for complicated queries on data where automatic use of indexes (when determined useful by the query planner) makes shit fast alongside transactions.
if you are trying to tell me that it is poor design to have 5 table joins with various sorts and whatnot, then you do not know what you are talking about.
Replies: >>105807650
Anonymous
7/5/2025, 2:10:54 PM No.105807622
Ranking from most based to least based:

sqlite > mariadb > mysql > ... > postgres
Anonymous
7/5/2025, 2:16:20 PM No.105807650
>>105807612
The Nr.1 performance issue in SQL databases, after missing indexes and retarded choices of types, is when they are used for things that they should not be used for.

The most common argument i see from Postgres corpo shills is that it's better at parsing JSON.
I would say that if you have to parse a JSON in your database, you went massively wrong somewhere.
In fact, that whole argument is emphasizing that Postgres is the new MongoDB. You seem to not even want SQL in the first place...

A relational database is for relational data.
Replies: >>105807671
Anonymous
7/5/2025, 2:20:39 PM No.105807671
>>105807650
>In fact, that whole argument is emphasizing that Postgres is the new MongoDB. You seem to not even want SQL in the first place...
at no point have I indicated that I am doing retarded shit like what you point out
>A relational database is for relational data.
no shit, and almost all data can be organized relationally.
Replies: >>105807688
Anonymous
7/5/2025, 2:23:16 PM No.105807688
>>105807671
you are just a puppet repeating what your corpo overlord tells you, literally whining about licenses and about what pharma companies use: >>105807465

So why wouldn't i use you as a stand-in for everything corpo cucks repeat like broken records?
Replies: >>105807696
Anonymous
7/5/2025, 2:25:12 PM No.105807696
1734144366708231
1734144366708231
md5: dfc7370f13e3f52c127c0bf8f601bf1a๐Ÿ”
>>105807688
Anonymous
7/5/2025, 2:36:53 PM No.105807760
>>105793365 (OP)
My experience as a webshitter working with various systems, old and new:
>sqlite
I love it in theory and it's ideal for local software, but can't recommend it as the DB for a web backend. Even for small MVPs.
It can handle it from a performance standpoint, but it has a lot of quirks and terrible defaults. Types are just suggestions, PKs can be null, foreign keys do nothing until you issue a special pragma telling sqlite to actually enforce them.
It's really easy to fire up a real DB with Docker nowadays, so just do that instead.
>mysql
I've only seen this used with Wordpress and other legacy PHP stuff. To be honest I haven't looked into it recently, newer versions might be fine. It's not on my radar when deciding what DB to use and I don't think anyone would choose it for greenfield now.
>postgres
Basically the default for new projects now.
Has really good extensions for vector similarity search (pgvector with pgvectorscale), so it's an especially attractive option for AI projects that don't want a separate vector DB.
>sql server
It's got a really good UI which is appealing to non-technical/semi-technical management types, and also integrates well with .NET (Entity Framework). Neither of the above are really worth the licensing fee anymore so it's slowly dying off. Last time I checked, no vector features unless you use the Azure cloud version.
Anonymous
7/5/2025, 2:42:39 PM No.105807798
>>105793365 (OP)
MariaDB / MySQL

I don't want to VACUUM my database. What am i? A woman?
Anonymous
7/5/2025, 4:46:40 PM No.105808558
>>105793365 (OP)
Cute dress
Anonymous
7/5/2025, 4:48:13 PM No.105808572
>>105795087
This - sqlite is fine for 99% of apps.
Anonymous
7/5/2025, 7:56:53 PM No.105809943
>>105793365 (OP)
PostgreSQL has been better than MySQL for a long time.
>>105793712
>MariaDB
STILL does not support deferred foreign key constraints. That makes it the database equivalent of Rust lang, where you cannot write a safe doubly linked list.
>>105798111
>MongoDB
Not relational.
>>105805512
>Sqlite
For me, it's H2. I can embed the database directly into my Java app sirs.
>>105803757
>MySQL. It just works.
I had a list of gripes about MySQL, but it appears they've fixed a lot in the last few years. They no longer default to MyISAM instead of InnoDB, they no longer default to ISO8859-1 and use UTF8 now, and you can now do case insensitive searches on the UTF8 columns now. But still no deferred FKs, which is a deal breaker.
Anonymous
7/5/2025, 7:59:53 PM No.105809981
I still prefer mariadb/mysql but if I wanted to stick a lot of logic in the db I would go for postgres.