Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XXFUk-00071w-FS for pgsql-sql@arkaria.postgresql.org; Thu, 25 Sep 2014 20:18:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XXFUj-00019F-N7 for pgsql-sql@arkaria.postgresql.org; Thu, 25 Sep 2014 20:18:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XXFUi-000198-FG for pgsql-sql@postgresql.org; Thu, 25 Sep 2014 20:18:28 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XXFUa-0007Ah-K6 for pgsql-sql@postgresql.org; Thu, 25 Sep 2014 20:18:27 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by gateway2.nyi.internal (Postfix) with ESMTP id 674AB20ED3 for ; Thu, 25 Sep 2014 16:18:18 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Thu, 25 Sep 2014 16:18:18 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= x-sasl-enc:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=Enuj6I781EUV+ix5NvO1FcIaK9w=; b=VX7ti8+BM5le+IaWwE 91fjiDADxgB5+EyaQUsZesAio55BQ6r6pL6Ofcr4Z/A0qRHZHJZfsbKDr6F0YoWi KCfKrUoGko0UEyeURCNr/0ii91LoQpDCfsbqya6wRrD/8k7h5saEkg/h/O7j4qp5 JObC7lzF4RF6Ft3iZyhBHpDC4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:message-id:date:from :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=Enuj6I781EUV+ix5NvO1Fc IaK9w=; b=iRn0wb8V+b6+vhj7s3QTIa4ONsffY7aW/N+fV8YhTcigzsi9LYy7QX iJDSDcH/diK1Bb4ziyrriFJ7Psa2Q61lFpXEhVKeL/1K7qrCFMUC5GuEtTrE9+to dCMvnQnwEDZ6YrJbaZ82vG+D7IGLWETDWdqyj7FawUCRWlunQrouc= X-Sasl-enc: 6+db/RSQdDwNXdnnrZeMQbwdnpQquj+qIBfS5M/lsYJM 1411676298 Received: from killi.site (unknown [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id DEDC8680186 for ; Thu, 25 Sep 2014 16:18:17 -0400 (EDT) Message-ID: <54247889.8050002@aklaver.com> Date: Thu, 25 Sep 2014 13:18:17 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: uuid for each postgres install? References: <1925720361.922357.1411675347958.JavaMail.root@fmed.uba.ar> In-Reply-To: <1925720361.922357.1411675347958.JavaMail.root@fmed.uba.ar> 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-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org On 09/25/2014 01:02 PM, Gerardo Herzig wrote: > Hi all. Im wondering if there is, maybe at compilation time, some sort of unique identifier who identifies the actual installation. > > It would be even better if can be accesed in SQL form. > At "initdb" time would be accepted, too. initdb does create a Database system identifier which can seen using pg_controldata: postgres@killi:~> pg_controldata /usr/local/pgsql/data pg_control version number: 903 Catalog version number: 201008051 Database system identifier: 5861256043884404217 Database cluster state: shut down A quick search showed that folks would like an SQL way of getting this and that none is available as far as I can determine. The only solution I could find was grepping the pg_controldata output. > > > Thanks! > > Gerardo > > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql