Sebastien FLAESCH <sf(at)4js(dot)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