Fair. With pgx, however, Rust "panic!"s are translated into standard Postgres "ERROR"s, such that instead of crashing, only the current transaction aborts.
So while you're pretty much correct in general, pgx handles it in the way a PG extension author would expect.
So while you're pretty much correct in general, pgx handles it in the way a PG extension author would expect.