Add table properties "Create table timestamp"

Для серверов с установленным track_commit_timestamp=on у таблиц можно определить время создания.
Это время равно значению запроса:
"select pg_xact_commit_timestamp(xmin) create_ts from pg_type where typrelid=$oid_table".
Если это время определить не удалось то "Create table timestamp" не отображается.
This commit is contained in:
lsv 2024-06-17 20:37:23 +05:00
parent 282cf08716
commit 38b4b4a5ed
5 changed files with 35 additions and 5 deletions

View file

@ -142,6 +142,15 @@ public:
{
tablespace = newVal;
}
wxString GetCreateTableTS() const
{
return create_table_TS;
};
void iSetCreateTableTS(const wxString& newVal)
{
create_table_TS = newVal;
}
wxString GetRatio() const
{
return ratio;
@ -613,7 +622,7 @@ private:
long inheritedTableCount, triggerCount;
wxString quotedInheritedTables, inheritedTables, primaryKey, quotedPrimaryKey,
primaryKeyName, primaryKeyColNumbers, tablespace, ratio,
primaryKeyName, primaryKeyColNumbers, tablespace, ratio, create_table_TS,
distributionColNumbers, ofType;
wxArrayString quotedInheritedTablesList, inheritedTablesOidList;