Help Center/ GaussDB/ Developer Guide(Distributed_V2.0-10.x)/ FAQ - Non-Multi-Primary/ Database Quick Start/ How Do I View the Creation Time of a Table?
Updated on 2026-10-21 GMT+08:00
How Do I View the Creation Time of a Table?
Answer: See the value of the created column in the PG_TABLES system view.
-- Create a table. gaussdb=# CREATE TABLE test(id int, name varchar(10)); -- Query the time when the test table is created. gaussdb=# SELECT tablename,created FROM pg_tables WHERE tablename = 'test'; tablename | created -----------+------------------------------- test | 2024-01-12 14:50:59.611988+08 (1 row)
Parent topic: Database Quick Start
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot