mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-16 14:15:50 -06:00
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:
parent
282cf08716
commit
38b4b4a5ed
5 changed files with 35 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue