Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aXyiA-0003wF-Ea for pgsql-general@arkaria.postgresql.org; Mon, 22 Feb 2016 22:12:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aXyiA-0001ND-0l for pgsql-general@arkaria.postgresql.org; Mon, 22 Feb 2016 22:12:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aXyi8-0001KZ-Kh for pgsql-general@postgresql.org; Mon, 22 Feb 2016 22:12:09 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aXyi5-0003nk-9i for pgsql-general@postgresql.org; Mon, 22 Feb 2016 22:12:08 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E038021B11 for ; Mon, 22 Feb 2016 17:12:03 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Mon, 22 Feb 2016 17:12:03 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=do75ZmY+wyNRCuMhPyXCQljJ65k=; b=M4Xlru swlZu/JBcjRVSZDYGTzb3Yc9PbwHA1tTfeBa2ICPcXm0+s7WzgtRJ9BAyb69wI6B t6DxGqnlb7hpWgdmLtT6pFf9sgMqpzwKScBB8CVr0BkeAZtFcsiUhCZDFRK1n7LL WhiUepp0gwSeO8ASIGLFqvecx+eaX+TJOENHY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=do75ZmY+wyNRCuM hPyXCQljJ65k=; b=fAVeoJa1kc0RzCwHkxgVORNuaADL+6L/yTYwKPhG5ZxIfle Y8cJpskpdDDt+LuXiAPxgnW8JxVzwhhXlvryMMCn1NJ7BSoEuQ01XANnGzHHxjSD auOQyP3WKk87UvvuWvW61vh0zuabLrupJNz+YGcANb/Xt/rAyZjBNGwpLrKA= X-Sasl-enc: 9JAQ1hfRWNetiEVSLm8PdOrzjYawifrl8B/79j0XRP3T 1456179123 Received: from killi.site (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id 5B1186800AF; Mon, 22 Feb 2016 17:12:03 -0500 (EST) Subject: Re: Get the date of creation of objects in the database To: "Edson F. Lidorio" , pgsql-general References: <56CB84F7.20803@openmailbox.org> From: Adrian Klaver Message-ID: <56CB87B2.3020009@aklaver.com> Date: Mon, 22 Feb 2016 14:12:02 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56CB84F7.20803@openmailbox.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 02/22/2016 02:00 PM, Edson F. Lidorio wrote: > Hello, > > How to get the date of creation of objects in batabase? > For example: The date of creation of tables and trigger. AFAIK that is not recorded by default. If you are using Postgres 9.3+ you could roll your own audit system, going forward, using event triggers: http://www.postgresql.org/docs/9.5/interactive/event-triggers.html Take a look at matrix below for what is included and not included: http://www.postgresql.org/docs/9.5/interactive/event-trigger-matrix.html PL/pgSQL example: http://www.postgresql.org/docs/9.5/interactive/plpgsql-trigger.html#PLPGSQL-EVENT-TRIGGER > > Thank you; > > Edson > > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general