mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
JSON
41 lines
1.2 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "\n SELECT\n c.relname AS \"tablename!\",\n GREATEST(c.reltuples, 0)::BIGINT AS \"row_count!\",\n pg_total_relation_size(c.oid)::BIGINT AS \"size_bytes!\"\n FROM pg_class c\n JOIN pg_namespace n ON n.oid = c.relnamespace\n WHERE n.nspname = 'public'\n AND c.relkind = 'r'\n AND c.relname ~ '^audit_logs_[0-9]{4}_[0-9]{2}$'\n ORDER BY c.relname DESC\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "tablename!",
|
|
"type_info": "Name",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "pg_class",
|
|
"name": "relname"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "row_count!",
|
|
"type_info": "Int8",
|
|
"origin": "Expression"
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "size_bytes!",
|
|
"type_info": "Int8",
|
|
"origin": "Expression"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
},
|
|
"nullable": [
|
|
false,
|
|
null,
|
|
null
|
|
]
|
|
},
|
|
"hash": "7fee8b9e0b5094bc86b710afcbbe1d55abba522ae24006362582e7c9ebd1f486"
|
|
}
|