On Feb 15, 2021, at 8:44 AM, Martin Bowes <martin.bowes@ndph.ox.ac.uk> wrote:
Is this what you want?
select varchar(t1.table_name, 32) as partition, varchar(t2.table_name, 32) as parent
from iitables t1 join iitables t2 on t1.table_reltid = t2.table_reltid and t2.table_reltidx = 0
where t1.table_type = 'P'
-----Original Message-----
From: Roy Hann <specially@processed.almost.meat>
Sent: 15 February 2021 13:12
To: info-ingres@lists.planetingres.org
Subject: [Info-ingres] Files underlying partitioned tables
I can locate the files belonging to table_type = 'P' tables using iifile_info in the usual way. The ingredient I am missing is a convenient way to relate a logical (table_type = 'T') table to its P tables.
Anyone able to assist?
Roy
_______________________________________________
Info-ingres mailing list
Info-ingres@lists.planetingres.org https://lists.planetingres.org/mailman/listinfo/info-ingres _______________________________________________
Info-ingres mailing list
Info-ingres@lists.planetingres.org https://lists.planetingres.org/mailman/listinfo/info-ingres
Is this what you want?
select varchar(t1.table_name, 32) as partition, varchar(t2.table_name, 32) as parent
from iitables t1 join iitables t2 on t1.table_reltid = t2.table_reltid and t2.table_reltidx = 0
where t1.table_type = 'P'
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 376 |
Nodes: | 16 (2 / 14) |
Uptime: | 01:06:35 |
Calls: | 8,010 |
Files: | 13,022 |
Messages: | 5,821,720 |