X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 41C50D1B506 for ; Thu, 2 Oct 2003 23:02:33 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 02465-01 for ; Thu, 2 Oct 2003 20:01:46 -0300 (ADT) Received: from loki.worldwidehosting.net (unknown [206.104.238.76]) by svr1.postgresql.org (Postfix) with SMTP id 5383AD1B508 for ; Thu, 2 Oct 2003 20:01:27 -0300 (ADT) Received: (qmail 30998 invoked from network); 2 Oct 2003 23:01:14 -0000 Received: from adsl-67-123-247-142.dsl.pltn13.pacbell.net (HELO DellLaptopDG) (67.123.247.142) by 9s.com with SMTP; 2 Oct 2003 23:01:14 -0000 From: "David B" To: Subject: How to figure out when was a table created Date: Thu, 2 Oct 2003 16:01:16 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/36 X-Sequence-Number: 15436 Hi folks, I posted this question a few days ago and got no response so I guess it cannot be done (surprising!) So that leaves me with my business problem. We create a table for each days activity. After N days (typically 7 days) we can drop the table. The table name is not known so cannot force business to make tablename something like mydata_MMDDYY I'd like to be able to do something like: SELECT tablename FROM pg_??? WHERE to_char( ???, 'dd/mm/yy' ) = to_char( now() - interval '7 days', 'dd/mm/yy' ) Any suggestions? --- Prior msg was: Folks, I have a list of tables for which I want to get the date they were created...and if possible the date last updateded. I suspect there is a pg_??? table that can answer this question but I don't know what it is and I cannot find it mentioned in any docs. Any suggestions...tia -D p.s. Love this forum!