Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WB1BT-0001Af-GH for pgsql-sql@arkaria.postgresql.org; Wed, 05 Feb 2014 12:02:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WB1BT-0006ri-0f for pgsql-sql@arkaria.postgresql.org; Wed, 05 Feb 2014 12:02:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WB1BS-0006rc-Cj for pgsql-sql@postgresql.org; Wed, 05 Feb 2014 12:02:26 +0000 Received: from odzwierny2.comarch.com ([217.74.69.10]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WB1BL-0007n4-PK for pgsql-sql@postgresql.org; Wed, 05 Feb 2014 12:02:26 +0000 Received: from localhost (localhost [127.0.0.1]) authenticated as cezariusz.marek@comarch.com by odzwierny2.comarch.com with esmtpsa (TLSv1:AES128-SHA:128)(ComArch ESMTP) id 1WB1B1-000E5x-3N for pgsql-sql@postgresql.org; Wed, 05 Feb 2014 13:02:18 +0100 From: "Cezariusz Marek" To: References: <08af01cf20ba$d5f0aec0$81d20c40$@comarch.pl> <1391600088.5800.YahooMailNeo@web133204.mail.ir2.yahoo.com> In-Reply-To: <1391600088.5800.YahooMailNeo@web133204.mail.ir2.yahoo.com> Subject: Re: IDENTIFY_SYSTEM Date: Wed, 5 Feb 2014 13:01:59 +0100 Organization: Comarch SA Message-ID: <0aa401cf226a$12eb9320$38c2b960$@comarch.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQICKcZhNzNUtvhJd/mIeVvo2v+gagIb82pBmi+fwLA= Content-Language: pl X-CA-Antivirus: Scanned by ComArch Antivirus on odzwierny2.comarch.com X-CA-Is-Spam: No X-Pg-Spam-Score: -0.4 (/) 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 > That's part of the streaming replication protocol >=20 > http://www.postgresql.org/docs/9.3/static/protocol-replication.html > As long as you're using wal_level >=3D archive and the replication connec= tion is enabled you can retrieve it via psql Yes, I know, but there is no way to get the systemid value from a function = using just SQL or plpgsql? > If it's just for licencing perhaps inet_server_addr() or a plperl functio= n to grab the mac address of the machine might suffice? I have to license each database, not just the whole machine. And the system= id is the only unique database identifier I've found. --=20 Cezariusz Marek Mobile +48 608 646 494, Phone +48 33 484 6900, http://www.comarch.com/ Comarch SA, ul. Micha=C5=82owicza 12, 43-300 Bielsko-Bia=C5=82a, POLAND --=20 Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql