Kostia R
07/21/2025, 7:12 AMecho=> USE INFORMATION_SCHEMA;
--
(0 rows)
echo=> SELECT * FROM tables WHERE table_schema='public' AND table_name='monitor'\G
invalid command \G
Try \? for help.
As I understand this is mysql syntax, for psql tried this but it returns empty results:
echo=> SELECT *
FROM information_schema.tables
WHERE table_schema='public'
AND table_name='monitor';
The data files are as such:
echo@echo-greptime:/etc/greptimedb-data$ sudo du -h --max-depth=1 .
12K ./index_intermediate
2.5M ./logs
45G ./data
4.0K ./tmp
6.4M ./metadata
2.3G ./wal
47G .Ning
07/21/2025, 7:17 AM\G is a special extension by mysql cli, so you cannot use it in psql. psql has a similar toggle \x but it's a global toggle so you just run \x to open/close it.
second question, can you just run SELECT * FROM information_schema.tables in case that your table is not named as monitorKostia R
07/21/2025, 7:29 AMKostia R
07/21/2025, 7:31 AMtable_rows column resembling something close to itNing
07/21/2025, 7:32 AM