agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Sebastien FLAESCH <sf@4js.com>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: Determining the DATE format with libpq
Date: Thu, 24 Aug 2017 11:26:57 -0400
Message-ID: <16272.1503588417@sss.pgh.pa.us> (raw)
In-Reply-To: <46935bcd-5754-9deb-fc63-8162bcdd4c46@4js.com>
References: <46935bcd-5754-9deb-fc63-8162bcdd4c46@4js.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
Sebastien FLAESCH <sf@4js.com> writes:
> Is there a way to know the current date format used in the SQL session?
> Ideally, we expect a libpq API.
Use PQparameterStatus().
> We cannot do a "SHOW DateStyle" each time we executing a SELECT!
You don't have to --- the server automatically reports changes in the
value of that parameter.
regards, tom lane
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (5+ messages) latest in thread
Message-ID: <16272.1503588417@sss.pgh.pa.us>
Permalink: ../16272.1503588417@sss.pgh.pa.us/
Also on: postgresql.org/message-id/16272.1503588417@sss.pgh.pa.us
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, sf@4js.com
Subject: Re: Determining the DATE format with libpq
In-Reply-To: <16272.1503588417@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox