{ "(repeated)": [ {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 ","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/report.txt"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[["12141725-76fd-4882-8d9c-c336104fd24a","documents","2b2b2b2b-0000-0000-0000-000000000001/report.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","8ef02850-8e99-43a0-9d85-4fb57a7c3ac6","{\"eTag\": \"\\\"8ef02850-8e99-43a0-9d85-4fb57a7c3ac6\\\"\", \"size\": 16, \"mimetype\": \"text/plain\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 16, \"httpStatusCode\": 200}",null,"{{now:2: :-:+00}}","{{now:2: :-:+00}}","{{now:2: :-:+00}}"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 ","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/b.txt"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[["52554055-da05-493e-b945-b4e2b060bf7d","documents","2b2b2b2b-0000-0000-0000-000000000001/b.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","c442f4f5-2db6-4a7d-82c2-e8754d0231ae","{\"eTag\": \"\\\"c442f4f5-2db6-4a7d-82c2-e8754d0231ae\\\"\", \"size\": 1, \"mimetype\": \"text/plain\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 1, \"httpStatusCode\": 200}",null,"{{now:5: :-:+00}}","{{now:5: :-:+00}}","{{now:5: :-:+00}}"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/b.txt"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[["52554055-da05-493e-b945-b4e2b060bf7d","documents","2b2b2b2b-0000-0000-0000-000000000001/b.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","c442f4f5-2db6-4a7d-82c2-e8754d0231ae","{\"eTag\": \"\\\"c442f4f5-2db6-4a7d-82c2-e8754d0231ae\\\"\", \"size\": 1, \"mimetype\": \"text/plain\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 1, \"httpStatusCode\": 200}",null,"{{now:5: :-:+00}}","{{now:5: :-:+00}}","{{now:5: :-:+00}}"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 ","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/b.txt"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[["52554055-da05-493e-b945-b4e2b060bf7d","documents","2b2b2b2b-0000-0000-0000-000000000001/b.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","ff64f39c-8d88-4a78-aa19-d38f61c191c9","{\"eTag\": \"\\\"ff64f39c-8d88-4a78-aa19-d38f61c191c9\\\"\", \"size\": 1, \"mimetype\": \"text/plain\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 1, \"httpStatusCode\": 200}",null,"{{now:5: :-:+00}}","{{now:6: :-:+00}}","{{now:5: :-:+00}}"]]}} ], "supabase.storage against /storage/v1 > uploads an avatar into the user's folder, served to anyone at its public URL": { "(hooks)#0": [ {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, name, owner, owner_id, public, file_size_limit::float8 as file_size_limit, allowed_mime_types, created_at, updated_at from storage.buckets where id = $1","params":["avatars"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",25],["name",25],["owner",2950],["owner_id",25],["public",16],["file_size_limit",701],["allowed_mime_types",1009],["created_at",1184],["updated_at",1184]],"rows":[["avatars","avatars",null,null,"t","1000","{image/*}","2026-01-01 00:00:00+00","2026-01-01 00:00:00+00"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["avatars","2b2b2b2b-0000-0000-0000-000000000001/me.png"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"\n insert into storage.objects (id, bucket_id, name, owner, owner_id, version, metadata, user_metadata)\n values ($1, $2, $3, $4, $5, $6, $7, $8)","params":["86655db0-1298-4d39-952b-03a32a1e79af","avatars","2b2b2b2b-0000-0000-0000-000000000001/me.png","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","fe3f9db5-afb5-48e8-9914-e6f0d72987f0","{\"eTag\":\"\",\"size\":0,\"mimetype\":\"image/png\",\"cacheControl\":\"\",\"lastModified\":\"2026-08-01T00:00:00.000Z\",\"contentLength\":0,\"httpStatusCode\":200}",null],"result":{"command":"INSERT","rowCount":1,"columns":[],"rows":[]}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["avatars","2b2b2b2b-0000-0000-0000-000000000001/me.png"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"\n insert into storage.objects (id, bucket_id, name, owner, owner_id, version, metadata, user_metadata)\n values ($1, $2, $3, $4, $5, $6, $7, $8)","params":["83d6c896-d3b6-47cc-89a6-73579458818f","avatars","2b2b2b2b-0000-0000-0000-000000000001/me.png","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","c42b6d32-1388-4feb-b7bf-862b20845b69","{\"eTag\":\"\\\"c42b6d32-1388-4feb-b7bf-862b20845b69\\\"\",\"size\":70,\"mimetype\":\"image/png\",\"cacheControl\":\"max-age=3600\",\"lastModified\":\"Sat, 01 Aug 2026 00:00:00 GMT\",\"contentLength\":70,\"httpStatusCode\":200}",null],"result":{"command":"INSERT","rowCount":1,"columns":[],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"\n select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects\n where bucket_id = $1 and name = $2 and exists (select from storage.buckets where id = $3 and public)","params":["avatars","2b2b2b2b-0000-0000-0000-000000000001/me.png","avatars"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[["83d6c896-d3b6-47cc-89a6-73579458818f","avatars","2b2b2b2b-0000-0000-0000-000000000001/me.png","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","c42b6d32-1388-4feb-b7bf-862b20845b69","{\"eTag\": \"\\\"c42b6d32-1388-4feb-b7bf-862b20845b69\\\"\", \"size\": 70, \"mimetype\": \"image/png\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 70, \"httpStatusCode\": 200}",null,"{{now:1: :-:+00}}","{{now:1: :-:+00}}","{{now:1: :-:+00}}"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true)","params":["statement_timeout","1000","role","anon","request.jwt.claims","{\"role\":\"anon\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","anon","{\"role\":\"anon\"}"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 ","params":["avatars","2b2b2b2b-0000-0000-0000-000000000001/me.png"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[["83d6c896-d3b6-47cc-89a6-73579458818f","avatars","2b2b2b2b-0000-0000-0000-000000000001/me.png","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","c42b6d32-1388-4feb-b7bf-862b20845b69","{\"eTag\": \"\\\"c42b6d32-1388-4feb-b7bf-862b20845b69\\\"\", \"size\": 70, \"mimetype\": \"image/png\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 70, \"httpStatusCode\": 200}",null,"{{now:1: :-:+00}}","{{now:1: :-:+00}}","{{now:1: :-:+00}}"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}} ] }, "supabase.storage against /storage/v1 > refuses by policy an upload into another user's folder, and stores nothing": { "(hooks)#0": [ {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, name, owner, owner_id, public, file_size_limit::float8 as file_size_limit, allowed_mime_types, created_at, updated_at from storage.buckets where id = $1","params":["avatars"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",25],["name",25],["owner",2950],["owner_id",25],["public",16],["file_size_limit",701],["allowed_mime_types",1009],["created_at",1184],["updated_at",1184]],"rows":[["avatars","avatars",null,null,"t","1000","{image/*}","2026-01-01 00:00:00+00","2026-01-01 00:00:00+00"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["avatars","2b2b2b2b-0000-0000-0000-000000000001/me.png"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[["83d6c896-d3b6-47cc-89a6-73579458818f","avatars","2b2b2b2b-0000-0000-0000-000000000001/me.png","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","c42b6d32-1388-4feb-b7bf-862b20845b69","{\"eTag\": \"\\\"c42b6d32-1388-4feb-b7bf-862b20845b69\\\"\", \"size\": 70, \"mimetype\": \"image/png\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 70, \"httpStatusCode\": 200}",null,"{{now:1: :-:+00}}","{{now:1: :-:+00}}","{{now:1: :-:+00}}"]]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000002\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000002","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000002\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000002\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000002","t"]]}}, {"sql":"\n update storage.objects set owner = $1, owner_id = $2, version = $3,\n metadata = $4, user_metadata = $5\n where id = $6","params":["2b2b2b2b-0000-0000-0000-000000000002","2b2b2b2b-0000-0000-0000-000000000002","72fd97a9-5eca-42d2-bfcb-195d236b9221","{\"eTag\":\"\",\"size\":0,\"mimetype\":\"image/png\",\"cacheControl\":\"\",\"lastModified\":\"2026-08-01T00:00:00.000Z\",\"contentLength\":0,\"httpStatusCode\":200}",null,"83d6c896-d3b6-47cc-89a6-73579458818f"],"result":{"command":"UPDATE","rowCount":0,"columns":[],"rows":[]}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, name, owner, owner_id, public, file_size_limit::float8 as file_size_limit, allowed_mime_types, created_at, updated_at from storage.buckets where id = $1","params":["avatars"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",25],["name",25],["owner",2950],["owner_id",25],["public",16],["file_size_limit",701],["allowed_mime_types",1009],["created_at",1184],["updated_at",1184]],"rows":[["avatars","avatars",null,null,"t","1000","{image/*}","2026-01-01 00:00:00+00","2026-01-01 00:00:00+00"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["avatars","someone/me.png"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true)","params":["role","anon","request.jwt.claims","{\"role\":\"anon\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25]],"rows":[["anon","{\"role\":\"anon\"}"]]}}, {"sql":"\n insert into storage.objects (id, bucket_id, name, owner, owner_id, version, metadata, user_metadata)\n values ($1, $2, $3, $4, $5, $6, $7, $8)","params":["ed82e088-4571-4786-b6a3-004eb6352cc7","avatars","someone/me.png",null,null,"58acf42e-c0d1-477d-b2d9-d3a51768ec96","{\"eTag\":\"\",\"size\":0,\"mimetype\":\"image/png\",\"cacheControl\":\"\",\"lastModified\":\"2026-08-01T00:00:00.000Z\",\"contentLength\":0,\"httpStatusCode\":200}",null],"error":{"message":"new row violates row-level security policy for table \"objects\"","severity":"ERROR","code":"42501"}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}} ] }, "supabase.storage against /storage/v1 > holds a bucket to its types and size limit": { "(hooks)#0": [ {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, name, owner, owner_id, public, file_size_limit::float8 as file_size_limit, allowed_mime_types, created_at, updated_at from storage.buckets where id = $1","params":["avatars"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",25],["name",25],["owner",2950],["owner_id",25],["public",16],["file_size_limit",701],["allowed_mime_types",1009],["created_at",1184],["updated_at",1184]],"rows":[["avatars","avatars",null,null,"t","1000","{image/*}","2026-01-01 00:00:00+00","2026-01-01 00:00:00+00"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, name, owner, owner_id, public, file_size_limit::float8 as file_size_limit, allowed_mime_types, created_at, updated_at from storage.buckets where id = $1","params":["avatars"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",25],["name",25],["owner",2950],["owner_id",25],["public",16],["file_size_limit",701],["allowed_mime_types",1009],["created_at",1184],["updated_at",1184]],"rows":[["avatars","avatars",null,null,"t","1000","{image/*}","2026-01-01 00:00:00+00","2026-01-01 00:00:00+00"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}} ] }, "supabase.storage against /storage/v1 > serves a private document only to its owner, and to anyone with a signed URL until it expires": { "(hooks)#0": [ {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, name, owner, owner_id, public, file_size_limit::float8 as file_size_limit, allowed_mime_types, created_at, updated_at from storage.buckets where id = $1","params":["documents"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",25],["name",25],["owner",2950],["owner_id",25],["public",16],["file_size_limit",701],["allowed_mime_types",1009],["created_at",1184],["updated_at",1184]],"rows":[["documents","documents",null,null,"f",null,null,"2026-01-01 00:00:00+00","2026-01-01 00:00:00+00"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/report.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"\n insert into storage.objects (id, bucket_id, name, owner, owner_id, version, metadata, user_metadata)\n values ($1, $2, $3, $4, $5, $6, $7, $8)","params":["1e1db381-68e2-416b-b97e-ee633dd69ec7","documents","2b2b2b2b-0000-0000-0000-000000000001/report.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","de82b26f-8a84-43a3-82ee-3480388bf2f2","{\"eTag\":\"\",\"size\":0,\"mimetype\":\"text/plain\",\"cacheControl\":\"\",\"lastModified\":\"2026-08-01T00:00:00.000Z\",\"contentLength\":0,\"httpStatusCode\":200}",null],"result":{"command":"INSERT","rowCount":1,"columns":[],"rows":[]}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/report.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"\n insert into storage.objects (id, bucket_id, name, owner, owner_id, version, metadata, user_metadata)\n values ($1, $2, $3, $4, $5, $6, $7, $8)","params":["12141725-76fd-4882-8d9c-c336104fd24a","documents","2b2b2b2b-0000-0000-0000-000000000001/report.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","8ef02850-8e99-43a0-9d85-4fb57a7c3ac6","{\"eTag\":\"\\\"8ef02850-8e99-43a0-9d85-4fb57a7c3ac6\\\"\",\"size\":16,\"mimetype\":\"text/plain\",\"cacheControl\":\"max-age=3600\",\"lastModified\":\"Sat, 01 Aug 2026 00:00:00 GMT\",\"contentLength\":16,\"httpStatusCode\":200}",null],"result":{"command":"INSERT","rowCount":1,"columns":[],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001"]]}}, {"repeated":0}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000002\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000002"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000002\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000002"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 ","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/report.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true)","params":["statement_timeout","1000","role","anon","request.jwt.claims","{\"role\":\"anon\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","anon","{\"role\":\"anon\"}"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 ","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/report.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001"]]}}, {"repeated":0}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"repeated":0}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}} ] }, "supabase.storage against /storage/v1 > lists, moves, copies, describes and removes documents": { "(hooks)#0": [ {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, name, owner, owner_id, public, file_size_limit::float8 as file_size_limit, allowed_mime_types, created_at, updated_at from storage.buckets where id = $1","params":["documents"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",25],["name",25],["owner",2950],["owner_id",25],["public",16],["file_size_limit",701],["allowed_mime_types",1009],["created_at",1184],["updated_at",1184]],"rows":[["documents","documents",null,null,"f",null,null,"2026-01-01 00:00:00+00","2026-01-01 00:00:00+00"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/drafts/a.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"\n insert into storage.objects (id, bucket_id, name, owner, owner_id, version, metadata, user_metadata)\n values ($1, $2, $3, $4, $5, $6, $7, $8)","params":["8d540657-262c-4f42-b552-d4de3c04e6a3","documents","2b2b2b2b-0000-0000-0000-000000000001/drafts/a.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","766de2d3-5184-4e3f-8696-8411b3fd11d9","{\"eTag\":\"\",\"size\":0,\"mimetype\":\"text/plain\",\"cacheControl\":\"\",\"lastModified\":\"2026-08-01T00:00:00.000Z\",\"contentLength\":0,\"httpStatusCode\":200}",null],"result":{"command":"INSERT","rowCount":1,"columns":[],"rows":[]}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/drafts/a.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"\n insert into storage.objects (id, bucket_id, name, owner, owner_id, version, metadata, user_metadata)\n values ($1, $2, $3, $4, $5, $6, $7, $8)","params":["15e8bc21-23e3-4f2f-a512-4adee6be14a0","documents","2b2b2b2b-0000-0000-0000-000000000001/drafts/a.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","392fa909-c1c1-42e2-aa47-a361c7a64c88","{\"eTag\":\"\\\"392fa909-c1c1-42e2-aa47-a361c7a64c88\\\"\",\"size\":1,\"mimetype\":\"text/plain\",\"cacheControl\":\"max-age=3600\",\"lastModified\":\"Sat, 01 Aug 2026 00:00:00 GMT\",\"contentLength\":1,\"httpStatusCode\":200}",null],"result":{"command":"INSERT","rowCount":1,"columns":[],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001"]]}}, {"sql":"\n with recursive walk as (\n \n select name, folder, id, updated_at, created_at, last_accessed_at, n = coalesce(first_folder, fetched) as last, case when folder then 1 else least(1 * 2, 1000) end as size\n from (select numbered.*, min(n) filter (where folder) over () as first_folder, count(*) over () as fetched\n from (select page.*, row_number() over (order by name collate \"C\") as n\n from (select name, strpos(substr(name, $1), '/') > 0 as folder, id, updated_at, created_at, last_accessed_at from storage.objects where bucket_id = $2 and name collate \"C\" like $3 and name collate \"C\" < $4 and name collate \"C\" >= $5 order by name collate \"C\" limit 1) page) numbered) counted\n where n <= coalesce(first_folder, fetched)\n union all\n select next.* from walk cross join lateral (\n \n select name, folder, id, updated_at, created_at, last_accessed_at, n = coalesce(first_folder, fetched) as last, case when folder then 1 else least(walk.size * 2, 1000) end as size\n from (select numbered.*, min(n) filter (where folder) over () as first_folder, count(*) over () as fetched\n from (select page.*, row_number() over (order by name collate \"C\") as n\n from (select name, strpos(substr(name, $6), '/') > 0 as folder, id, updated_at, created_at, last_accessed_at from storage.objects where bucket_id = $7 and name collate \"C\" like $8 and name collate \"C\" < $9 and name collate \"C\" >= case when walk.folder then $10 || split_part(substr(walk.name, $11), '/', 1) || '0' else walk.name || chr(1) end order by name collate \"C\" limit walk.size) page) numbered) counted\n where n <= coalesce(first_folder, fetched)\n ) next where walk.last\n ), entries as (\n select distinct on (entry) entry as name, folder, case when folder then null else id end as id,\n case when folder then null else updated_at end as updated_at, case when folder then null else created_at end as created_at,\n case when folder then null else last_accessed_at end as last_accessed_at\n from (select split_part(substr(name, $12), '/', 1) as entry, folder, id, updated_at, created_at, last_accessed_at from walk) level\n where entry ilike $13\n order by entry, folder desc\n ), page as (\n select * from entries order by name collate \"C\" asc limit $14 offset $15\n )\n -- The metadata of the page's objects only: the walk carries none of the level's.\n select name, page.id, updated_at, created_at, last_accessed_at, object.metadata from page\n left join lateral (select metadata from storage.objects where storage.objects.id = page.id) object on true\n order by name collate \"C\" asc","params":["38","documents","2b2b2b2b-0000-0000-0000-000000000001/%","2b2b2b2b-0000-0000-0000-0000000000010","2b2b2b2b-0000-0000-0000-000000000001/","38","documents","2b2b2b2b-0000-0000-0000-000000000001/%","2b2b2b2b-0000-0000-0000-0000000000010","2b2b2b2b-0000-0000-0000-000000000001/","38","38","%","100","0"],"result":{"command":"SELECT","rowCount":2,"columns":[["name",25],["id",2950],["updated_at",1184],["created_at",1184],["last_accessed_at",1184],["metadata",3802]],"rows":[ ["drafts",null,null,null,null,null], ["report.txt","12141725-76fd-4882-8d9c-c336104fd24a","{{now:2: :-:+00}}","{{now:2: :-:+00}}","{{now:2: :-:+00}}","{\"eTag\": \"\\\"8ef02850-8e99-43a0-9d85-4fb57a7c3ac6\\\"\", \"size\": 16, \"mimetype\": \"text/plain\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 16, \"httpStatusCode\": 200}"] ]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 ","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/drafts/a.txt"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[["15e8bc21-23e3-4f2f-a512-4adee6be14a0","documents","2b2b2b2b-0000-0000-0000-000000000001/drafts/a.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","392fa909-c1c1-42e2-aa47-a361c7a64c88","{\"eTag\": \"\\\"392fa909-c1c1-42e2-aa47-a361c7a64c88\\\"\", \"size\": 1, \"mimetype\": \"text/plain\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 1, \"httpStatusCode\": 200}",null,"{{now:3: :-:+00}}","{{now:3: :-:+00}}","{{now:3: :-:+00}}"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/drafts/a.txt"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[["15e8bc21-23e3-4f2f-a512-4adee6be14a0","documents","2b2b2b2b-0000-0000-0000-000000000001/drafts/a.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","392fa909-c1c1-42e2-aa47-a361c7a64c88","{\"eTag\": \"\\\"392fa909-c1c1-42e2-aa47-a361c7a64c88\\\"\", \"size\": 1, \"mimetype\": \"text/plain\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 1, \"httpStatusCode\": 200}",null,"{{now:3: :-:+00}}","{{now:3: :-:+00}}","{{now:3: :-:+00}}"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/a.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"\n update storage.objects set bucket_id = $1, name = $2, version = $3, owner = $4, owner_id = $5\n where bucket_id = $6 and name = $7","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/a.txt","0dd3fb62-4a04-44b4-a7e4-016d0e478be5","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","documents","2b2b2b2b-0000-0000-0000-000000000001/drafts/a.txt"],"result":{"command":"UPDATE","rowCount":1,"columns":[],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 ","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/a.txt"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[["15e8bc21-23e3-4f2f-a512-4adee6be14a0","documents","2b2b2b2b-0000-0000-0000-000000000001/a.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","0dd3fb62-4a04-44b4-a7e4-016d0e478be5","{\"eTag\": \"\\\"392fa909-c1c1-42e2-aa47-a361c7a64c88\\\"\", \"size\": 1, \"mimetype\": \"text/plain\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 1, \"httpStatusCode\": 200}",null,"{{now:3: :-:+00}}","{{now:4: :-:+00}}","{{now:3: :-:+00}}"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/b.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"\n insert into storage.objects (id, bucket_id, name, owner, owner_id, version, metadata, user_metadata)\n values ($1, $2, $3, $4, $5, $6, $7, $8)","params":["2930dd3a-e5c5-43d9-9b11-d5a8fdb856cd","documents","2b2b2b2b-0000-0000-0000-000000000001/b.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","85fc7fa7-f6c9-4366-a9bc-2f08be37047e","{\"eTag\":\"\",\"size\":0,\"mimetype\":\"text/plain\",\"cacheControl\":\"\",\"lastModified\":\"2026-08-01T00:00:00.000Z\",\"contentLength\":0,\"httpStatusCode\":200}",null],"result":{"command":"INSERT","rowCount":1,"columns":[],"rows":[]}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/b.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"\n insert into storage.objects (id, bucket_id, name, owner, owner_id, version, metadata, user_metadata)\n values ($1, $2, $3, $4, $5, $6, $7, $8)","params":["52554055-da05-493e-b945-b4e2b060bf7d","documents","2b2b2b2b-0000-0000-0000-000000000001/b.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","c442f4f5-2db6-4a7d-82c2-e8754d0231ae","{\"eTag\":\"\\\"c442f4f5-2db6-4a7d-82c2-e8754d0231ae\\\"\",\"size\":1,\"mimetype\":\"text/plain\",\"cacheControl\":\"max-age=3600\",\"lastModified\":\"Sat, 01 Aug 2026 00:00:00 GMT\",\"contentLength\":1,\"httpStatusCode\":200}",null],"result":{"command":"INSERT","rowCount":1,"columns":[],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001"]]}}, {"repeated":1}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001"]]}}, {"repeated":1}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, name, owner, owner_id, public, file_size_limit::float8 as file_size_limit, allowed_mime_types, created_at, updated_at from storage.buckets where id = $1","params":["documents"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",25],["name",25],["owner",2950],["owner_id",25],["public",16],["file_size_limit",701],["allowed_mime_types",1009],["created_at",1184],["updated_at",1184]],"rows":[["documents","documents",null,null,"f",null,null,"2026-01-01 00:00:00+00","2026-01-01 00:00:00+00"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"repeated":2}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"\n update storage.objects set owner = $1, owner_id = $2, version = $3,\n metadata = $4, user_metadata = $5\n where id = $6","params":["2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","26fa3158-c58c-49fb-8cb0-48a13efdb0bb","{\"eTag\":\"\",\"size\":0,\"mimetype\":\"text/plain\",\"cacheControl\":\"\",\"lastModified\":\"2026-08-01T00:00:00.000Z\",\"contentLength\":0,\"httpStatusCode\":200}",null,"52554055-da05-493e-b945-b4e2b060bf7d"],"result":{"command":"UPDATE","rowCount":1,"columns":[],"rows":[]}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"repeated":2}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"\n update storage.objects set owner = $1, owner_id = $2, version = $3,\n metadata = $4, user_metadata = $5\n where id = $6","params":["2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","ff64f39c-8d88-4a78-aa19-d38f61c191c9","{\"eTag\":\"\\\"ff64f39c-8d88-4a78-aa19-d38f61c191c9\\\"\",\"size\":1,\"mimetype\":\"text/plain\",\"cacheControl\":\"max-age=3600\",\"lastModified\":\"Sat, 01 Aug 2026 00:00:00 GMT\",\"contentLength\":1,\"httpStatusCode\":200}",null,"52554055-da05-493e-b945-b4e2b060bf7d"],"result":{"command":"UPDATE","rowCount":1,"columns":[],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001"]]}}, {"repeated":3}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001"]]}}, {"repeated":3}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 ","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/drafts/a.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true), pg_logical_emit_message(true, $9, $10::text) is not null","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"select set_config('storage.allow_delete_query', 'true', true)","result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["true"]]}}, {"sql":"delete from storage.objects where bucket_id = $1 and name = any($2::text[]) returning id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at","params":["documents","{\"2b2b2b2b-0000-0000-0000-000000000001/a.txt\",\"2b2b2b2b-0000-0000-0000-000000000001/b.txt\"}"],"result":{"command":"DELETE","rowCount":2,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[ ["15e8bc21-23e3-4f2f-a512-4adee6be14a0","documents","2b2b2b2b-0000-0000-0000-000000000001/a.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","0dd3fb62-4a04-44b4-a7e4-016d0e478be5","{\"eTag\": \"\\\"392fa909-c1c1-42e2-aa47-a361c7a64c88\\\"\", \"size\": 1, \"mimetype\": \"text/plain\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 1, \"httpStatusCode\": 200}",null,"{{now:3: :-:+00}}","{{now:4: :-:+00}}","{{now:3: :-:+00}}"], ["52554055-da05-493e-b945-b4e2b060bf7d","documents","2b2b2b2b-0000-0000-0000-000000000001/b.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","ff64f39c-8d88-4a78-aa19-d38f61c191c9","{\"eTag\": \"\\\"ff64f39c-8d88-4a78-aa19-d38f61c191c9\\\"\", \"size\": 1, \"mimetype\": \"text/plain\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 1, \"httpStatusCode\": 200}",null,"{{now:5: :-:+00}}","{{now:6: :-:+00}}","{{now:5: :-:+00}}"] ]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001"]]}}, {"sql":"\n with recursive walk as (\n \n select name, folder, id, updated_at, created_at, last_accessed_at, n = coalesce(first_folder, fetched) as last, case when folder then 1 else least(1 * 2, 1000) end as size\n from (select numbered.*, min(n) filter (where folder) over () as first_folder, count(*) over () as fetched\n from (select page.*, row_number() over (order by name collate \"C\") as n\n from (select name, strpos(substr(name, $1), '/') > 0 as folder, id, updated_at, created_at, last_accessed_at from storage.objects where bucket_id = $2 and name collate \"C\" like $3 and name collate \"C\" < $4 and name collate \"C\" >= $5 order by name collate \"C\" limit 1) page) numbered) counted\n where n <= coalesce(first_folder, fetched)\n union all\n select next.* from walk cross join lateral (\n \n select name, folder, id, updated_at, created_at, last_accessed_at, n = coalesce(first_folder, fetched) as last, case when folder then 1 else least(walk.size * 2, 1000) end as size\n from (select numbered.*, min(n) filter (where folder) over () as first_folder, count(*) over () as fetched\n from (select page.*, row_number() over (order by name collate \"C\") as n\n from (select name, strpos(substr(name, $6), '/') > 0 as folder, id, updated_at, created_at, last_accessed_at from storage.objects where bucket_id = $7 and name collate \"C\" like $8 and name collate \"C\" < $9 and name collate \"C\" >= case when walk.folder then $10 || split_part(substr(walk.name, $11), '/', 1) || '0' else walk.name || chr(1) end order by name collate \"C\" limit walk.size) page) numbered) counted\n where n <= coalesce(first_folder, fetched)\n ) next where walk.last\n ), entries as (\n select distinct on (entry) entry as name, folder, case when folder then null else id end as id,\n case when folder then null else updated_at end as updated_at, case when folder then null else created_at end as created_at,\n case when folder then null else last_accessed_at end as last_accessed_at\n from (select split_part(substr(name, $12), '/', 1) as entry, folder, id, updated_at, created_at, last_accessed_at from walk) level\n where entry ilike $13\n order by entry, folder desc\n ), page as (\n select * from entries order by name collate \"C\" asc limit $14 offset $15\n )\n -- The metadata of the page's objects only: the walk carries none of the level's.\n select name, page.id, updated_at, created_at, last_accessed_at, object.metadata from page\n left join lateral (select metadata from storage.objects where storage.objects.id = page.id) object on true\n order by name collate \"C\" asc","params":["38","documents","2b2b2b2b-0000-0000-0000-000000000001/%","2b2b2b2b-0000-0000-0000-0000000000010","2b2b2b2b-0000-0000-0000-000000000001/","38","documents","2b2b2b2b-0000-0000-0000-000000000001/%","2b2b2b2b-0000-0000-0000-0000000000010","2b2b2b2b-0000-0000-0000-000000000001/","38","38","%","100","0"],"result":{"command":"SELECT","rowCount":1,"columns":[["name",25],["id",2950],["updated_at",1184],["created_at",1184],["last_accessed_at",1184],["metadata",3802]],"rows":[["report.txt","12141725-76fd-4882-8d9c-c336104fd24a","{{now:2: :-:+00}}","{{now:2: :-:+00}}","{{now:2: :-:+00}}","{\"eTag\": \"\\\"8ef02850-8e99-43a0-9d85-4fb57a7c3ac6\\\"\", \"size\": 16, \"mimetype\": \"text/plain\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 16, \"httpStatusCode\": 200}"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}} ] }, "supabase.storage against /storage/v1 > uploads to a signed upload URL for the user who signed it": { "(hooks)#0": [ {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/scan.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"\n insert into storage.objects (id, bucket_id, name, owner, owner_id, version, metadata, user_metadata)\n values ($1, $2, $3, $4, $5, $6, $7, $8)","params":["ab34ce72-94ed-472b-a678-0566948c5f97","documents","2b2b2b2b-0000-0000-0000-000000000001/scan.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","c3513e5b-6859-4357-bc78-5375fa3e2616","{\"eTag\":\"\",\"size\":0,\"mimetype\":\"application/json\",\"cacheControl\":\"\",\"lastModified\":\"2026-08-01T00:00:00.000Z\",\"contentLength\":0,\"httpStatusCode\":200}",null],"result":{"command":"INSERT","rowCount":1,"columns":[],"rows":[]}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, name, owner, owner_id, public, file_size_limit::float8 as file_size_limit, allowed_mime_types, created_at, updated_at from storage.buckets where id = $1","params":["documents"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",25],["name",25],["owner",2950],["owner_id",25],["public",16],["file_size_limit",701],["allowed_mime_types",1009],["created_at",1184],["updated_at",1184]],"rows":[["documents","documents",null,null,"f",null,null,"2026-01-01 00:00:00+00","2026-01-01 00:00:00+00"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/scan.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["request.jwt.claims","{\"role\":\"service_role\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["{\"role\":\"service_role\"}"]]}}, {"sql":"\n insert into storage.objects (id, bucket_id, name, owner, owner_id, version, metadata, user_metadata)\n values ($1, $2, $3, $4, $5, $6, $7, $8)","params":["f254bb9e-6b32-4a46-9bf3-05e21c30d719","documents","2b2b2b2b-0000-0000-0000-000000000001/scan.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","68140ec6-5a0b-4b5e-8214-a44fb9c2edd6","{\"eTag\":\"\",\"size\":0,\"mimetype\":\"text/plain\",\"cacheControl\":\"\",\"lastModified\":\"2026-08-01T00:00:00.000Z\",\"contentLength\":0,\"httpStatusCode\":200}",null],"result":{"command":"INSERT","rowCount":1,"columns":[],"rows":[]}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/scan.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["request.jwt.claims","{\"role\":\"service_role\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["{\"role\":\"service_role\"}"]]}}, {"sql":"\n insert into storage.objects (id, bucket_id, name, owner, owner_id, version, metadata, user_metadata)\n values ($1, $2, $3, $4, $5, $6, $7, $8)","params":["5d28c073-9232-4b61-8710-f661034e1cb5","documents","2b2b2b2b-0000-0000-0000-000000000001/scan.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","7e79ac0a-85c5-4126-a204-dd78c9f1455d","{\"eTag\":\"\\\"7e79ac0a-85c5-4126-a204-dd78c9f1455d\\\"\",\"size\":7,\"mimetype\":\"text/plain\",\"cacheControl\":\"max-age=3600\",\"lastModified\":\"Sat, 01 Aug 2026 00:00:00 GMT\",\"contentLength\":7,\"httpStatusCode\":200}",null],"result":{"command":"INSERT","rowCount":1,"columns":[],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 ","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/scan.txt"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[["5d28c073-9232-4b61-8710-f661034e1cb5","documents","2b2b2b2b-0000-0000-0000-000000000001/scan.txt","2b2b2b2b-0000-0000-0000-000000000001","2b2b2b2b-0000-0000-0000-000000000001","7e79ac0a-85c5-4126-a204-dd78c9f1455d","{\"eTag\": \"\\\"7e79ac0a-85c5-4126-a204-dd78c9f1455d\\\"\", \"size\": 7, \"mimetype\": \"text/plain\", \"cacheControl\": \"max-age=3600\", \"lastModified\": \"Sat, 01 Aug 2026 00:00:00 GMT\", \"contentLength\": 7, \"httpStatusCode\": 200}",null,"{{now:7: :-:+00}}","{{now:7: :-:+00}}","{{now:7: :-:+00}}"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select id, bucket_id, name, owner, owner_id, version, metadata, user_metadata, created_at, updated_at, last_accessed_at from storage.objects where bucket_id = $1 and name = $2 for update","params":["documents","2b2b2b2b-0000-0000-0000-000000000001/other.txt"],"result":{"command":"SELECT","rowCount":0,"columns":[["id",2950],["bucket_id",25],["name",25],["owner",2950],["owner_id",25],["version",25],["metadata",3802],["user_metadata",3802],["created_at",1184],["updated_at",1184],["last_accessed_at",1184]],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), pg_logical_emit_message(true, $7, $8::text) is not null","params":["role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000002\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000002","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000002\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000002\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000002","t"]]}}, {"sql":"\n insert into storage.objects (id, bucket_id, name, owner, owner_id, version, metadata, user_metadata)\n values ($1, $2, $3, $4, $5, $6, $7, $8)","params":["811744fd-acc1-4fe6-aca2-290724d4d52c","documents","2b2b2b2b-0000-0000-0000-000000000001/other.txt","2b2b2b2b-0000-0000-0000-000000000002","2b2b2b2b-0000-0000-0000-000000000002","c3b70ff8-f211-4240-a598-39c0d5bcebb0","{\"eTag\":\"\",\"size\":0,\"mimetype\":\"application/json\",\"cacheControl\":\"\",\"lastModified\":\"2026-08-01T00:00:00.000Z\",\"contentLength\":0,\"httpStatusCode\":200}",null],"error":{"message":"new row violates row-level security policy for table \"objects\"","severity":"ERROR","code":"42501"}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}} ] }, "supabase.storage against /storage/v1 > manages buckets as the secret key, and lists them to users as the policies allow": { "(hooks)#0": [ {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true)","params":["statement_timeout","1000","request.jwt.claims","{\"role\":\"service_role\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25]],"rows":[["1s","{\"role\":\"service_role\"}"]]}}, {"sql":"\n insert into storage.buckets (id, name, owner_id, public, file_size_limit, allowed_mime_types)\n values ($1, $2, $3, $4, $5, $6)","params":["exports","exports",null,"false","1000000",null],"result":{"command":"INSERT","rowCount":1,"columns":[],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true)","params":["statement_timeout","1000","request.jwt.claims","{\"role\":\"service_role\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25]],"rows":[["1s","{\"role\":\"service_role\"}"]]}}, {"sql":"select id, name, owner, owner_id, public, file_size_limit::float8 as file_size_limit, allowed_mime_types, created_at, updated_at from storage.buckets where id = $1","params":["exports"],"result":{"command":"SELECT","rowCount":1,"columns":[["id",25],["name",25],["owner",2950],["owner_id",25],["public",16],["file_size_limit",701],["allowed_mime_types",1009],["created_at",1184],["updated_at",1184]],"rows":[["exports","exports",null,null,"f","1000000",null,"{{now:8: :-:+00}}","{{now:8: :-:+00}}"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true)","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001"]]}}, {"sql":"select id, name, owner, owner_id, public, file_size_limit::float8 as file_size_limit, allowed_mime_types, created_at, updated_at from storage.buckets order by name collate \"C\"","result":{"command":"SELECT","rowCount":3,"columns":[["id",25],["name",25],["owner",2950],["owner_id",25],["public",16],["file_size_limit",701],["allowed_mime_types",1009],["created_at",1184],["updated_at",1184]],"rows":[ ["avatars","avatars",null,null,"t","1000","{image/*}","2026-01-01 00:00:00+00","2026-01-01 00:00:00+00"], ["documents","documents",null,null,"f",null,null,"2026-01-01 00:00:00+00","2026-01-01 00:00:00+00"], ["exports","exports",null,null,"f","1000000",null,"{{now:8: :-:+00}}","{{now:8: :-:+00}}"] ]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true)","params":["statement_timeout","1000","role","anon","request.jwt.claims","{\"role\":\"anon\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25]],"rows":[["1s","anon","{\"role\":\"anon\"}"]]}}, {"sql":"select id, name, owner, owner_id, public, file_size_limit::float8 as file_size_limit, allowed_mime_types, created_at, updated_at from storage.buckets order by name collate \"C\"","result":{"command":"SELECT","rowCount":0,"columns":[["id",25],["name",25],["owner",2950],["owner_id",25],["public",16],["file_size_limit",701],["allowed_mime_types",1009],["created_at",1184],["updated_at",1184]],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true), set_config($5, $6, true), set_config($7, $8, true), pg_logical_emit_message(true, $9, $10::text) is not null","params":["statement_timeout","1000","role","authenticated","request.jwt.claims","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","request.jwt.claim.sub","2b2b2b2b-0000-0000-0000-000000000001","protobase_actor","{\"id\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"roles\":[]}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25],["set_config",25],["set_config",25],["?column?",16]],"rows":[["1s","authenticated","{\"role\":\"authenticated\",\"sub\":\"2b2b2b2b-0000-0000-0000-000000000001\",\"exp\":1785546000}","2b2b2b2b-0000-0000-0000-000000000001","t"]]}}, {"sql":"\n insert into storage.buckets (id, name, owner_id, public, file_size_limit, allowed_mime_types)\n values ($1, $2, $3, $4, $5, $6)","params":["mine","mine","2b2b2b2b-0000-0000-0000-000000000001","false",null,null],"error":{"message":"new row violates row-level security policy for table \"buckets\"","severity":"ERROR","code":"42501"}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true)","params":["statement_timeout","1000","request.jwt.claims","{\"role\":\"service_role\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25]],"rows":[["1s","{\"role\":\"service_role\"}"]]}}, {"sql":"select set_config('storage.allow_delete_query', 'true', true)","result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["true"]]}}, {"sql":"delete from storage.buckets where id = $1","params":["documents"],"error":{"message":"update or delete on table \"buckets\" violates foreign key constraint \"objects_bucket_id_fkey\" on table \"objects\"","severity":"ERROR","code":"23503","detail":"Key (id)=(documents) is still referenced from table \"objects\".","schema":"storage","table":"objects","constraint":"objects_bucket_id_fkey"}}, {"sql":"rollback","result":{"command":"ROLLBACK","rowCount":null,"columns":[],"rows":[]}}, {"sql":"begin","result":{"command":"BEGIN","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true), set_config($3, $4, true)","params":["statement_timeout","1000","request.jwt.claims","{\"role\":\"service_role\"}"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25],["set_config",25]],"rows":[["1s","{\"role\":\"service_role\"}"]]}}, {"sql":"select set_config('storage.allow_delete_query', 'true', true)","result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["true"]]}}, {"sql":"delete from storage.buckets where id = $1","params":["exports"],"result":{"command":"DELETE","rowCount":1,"columns":[],"rows":[]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}} ] } }