198 karma · joined May 19, 2023 (3y ago) · 24 submissions
comment 11mo ago · link · parent
CloudNativePG (https://cloudnative-pg.io) is a great option if you’re using Kubernetes.
There’s also pg_auto_failover which is a Postgres extension and a bit less complex than the alternatives, but it has its drawbacks.
comment 2y ago · link · parent
comment 2y ago · link · parent
I assume these low limits in US insurance also affect material damages so that if you crash into an expensive car you just get a bunch of debt you need to pay off?
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
Also national court decisions do not apply to other member states.
comment 3y ago · link · parent
I’m not proud of the mayhem that my cheats caused, but it was a defining moment in my life - I learned a lot and soon started doing small jobs for various companies, starting a career in software before I was even an adult.
comment 3y ago · link · parent
At this point he should probably just own it if it is indeed him.
comment 3y ago · link · parent
$ pgbench -h localhost -p 5432 -b select-only -T 60 -c 10 -j 2 bench
Password:
pgbench (15.3 (Ubuntu 15.3-1.pgdg22.04+1))
starting vacuum...end.
transaction type: <builtin: select only>
scaling factor: 1
query mode: simple
number of clients: 10
number of threads: 2
maximum number of tries: 1
duration: 60 s
number of transactions actually processed: 10370147
number of failed transactions: 0 (0.000%)
latency average = 0.058 ms
initial connection time = 54.881 ms
tps = 172993.008029 (without initial connection time)
$ pgbench -h /var/run/postgresql -p 5432 -b select-only -T 60 -c 10 -j 2 bench
pgbench (15.3 (Ubuntu 15.3-1.pgdg22.04+1))
starting vacuum...end.
transaction type: <builtin: select only>
scaling factor: 1
query mode: simple
number of clients: 10
number of threads: 2
maximum number of tries: 1
duration: 60 s
number of transactions actually processed: 16890415
number of failed transactions: 0 (0.000%)
latency average = 0.036 ms
initial connection time = 7.186 ms
tps = 281540.260418 (without initial connection time)
YMMV depending on your workload, but Unix sockets should always be significantly faster.comment 3y ago · link · parent
- He owns a 2022 Hyundai ioniq 5, USA version
- The brake lights generally work fine, however when in one-pedal mode (i.e. accelerator does regenerative braking for the first X% of travel) they only activate when the vehicle is about to stop so long as the driver has the accelerator ever slightly depressed
- This is a problem because the regenerative braking is quite strong - he goes from 60 mph/96 kph to 0 in 13 seconds and the stop lights never illuminate
- He thinks this should not be allowed and Hyundai should recall the cars to fix this
- However, in the US this is perfectly legal - regenerative braking is not considered as part of the "service brake", so illuminating the stop lights is not required
- The EU on the other hand just fixed this gap in the law in March, by requiring that stop lights be illuminated whenever the deceleration exceeds 1.3 m/s^2
comment 3y ago · link · parent
Thanks for all your work on PostgREST, Steve! Do you think we'll see relational inserts in the near future, or is that still a bit down the road?
comment 3y ago · link · parent
ALTER TABLE bookmarks ENABLE ROW LEVEL SECURITY;
CREATE POLICY bookmarks_owner ON bookmarks USING (owner_id = auth.uid());
CREATE VIEW recent_bookmarks AS SELECT * FROM bookmarks ORDER BY created_at DESC LIMIT 5;
The above may look fine at first glance, but recent_bookmarks actually bypasses RLS.