Re: Getting a list of encodings.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: a(dot)maclean(at)cas(dot)edu(dot)au
Cc: General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Getting a list of encodings.
Date: 2009-05-11 23:37:06
Message-ID: 2855.1242085026@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andrew Maclean <andrew(dot)amaclean(at)gmail(dot)com> writes:
> Is it possible to query the database system tables and get a list of
> available database encodings?

The pg_encoding_to_char() function might help you, eg

select pg_encoding_to_char(i) from generate_series(0,100) i;

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Maclean 2009-05-12 01:17:36 Re: Getting a list of encodings.
Previous Message Vikram Patil 2009-05-11 23:30:56 Compiler versions on different platforms