Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TbBQo-0007we-Jl for pgsql-admin@postgresql.org; Wed, 21 Nov 2012 14:37:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TbBQm-0005PP-RR for pgsql-admin@postgresql.org; Wed, 21 Nov 2012 14:37:38 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qALEbYYE002908; Wed, 21 Nov 2012 09:37:34 -0500 (EST) From: Tom Lane To: Shams Khan cc: pgsql-admin@postgresql.org Subject: Re: How to check history of sequences and constraints (version 9.1) In-reply-to: References: Comments: In-reply-to Shams Khan message dated "Wed, 21 Nov 2012 12:32:50 +0530" Date: Wed, 21 Nov 2012 09:37:34 -0500 Message-ID: <2907.1353508654@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) X-Archive-Number: 201211/113 X-Sequence-Number: 40358 Shams Khan writes: > I want to check the last reset valued of sequence and the date of foreign > key constraint when it was created. Is that possible in postgres 9.1 > version?? No, the system doesn't track any such thing. You could possibly set log_statement to record all commands of interest in the postmaster log and then trawl through that data, but it wouldn't be especially easy. regards, tom lane