News for hackers. Stuff that matters.
Re:You Should Add Debug Views to Your DB by FrancoisBosun on Thursday August 21, 2025 @02:12PM (#44976131)
I do the "same thing", but using PostgreSQL `EXPLAIN ANALYZE`. EXPLAIN ANALYZE has information about the number of rows returned, which means I know exactly which node in the query plan failed to return expected values.
Re:You Should Add Debug Views to Your DB by ericHosick on Thursday August 21, 2025 @02:23PM (#44976271)
don't mean to push the goalpost (didn't mention the following in the above post)

these functions can also be exposed in admin ui's making it easier for the general admin users/support users.

another very useful use case is when row level security (RLS) is enabled.

Re:You Should Add Debug Views to Your DB by polishdude20 on Thursday August 21, 2025 @04:57PM (#44977999)
Not for function though unless you specify it as a debug flag inside the function?