pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dextra - Gustavo Bartz Guedes <gustavo-bartz@dextra.com.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_enconding
Date: Mon, 18 Apr 2005 13:34:42 -0400
Message-ID: <23951.1113845682@sss.pgh.pa.us> (raw)
In-Reply-To: <4263E19D.4050008@dextra.com.br>
References: <NFBBKOADOLGDLPMAAHMDGEDLDCAA.asimpson@i-55.com>
	<22439.1113841097@sss.pgh.pa.us>
	<4263E19D.4050008@dextra.com.br>

Dextra - Gustavo Bartz Guedes <gustavo-bartz@dextra.com.br> writes:
> The version 8.0 has not the pg_encoding tool, so how can I find a 
> encoding by its number on pg_database.enconding?

See pg_char_to_encoding() and pg_encoding_to_char().  For instance

select datname,pg_encoding_to_char(encoding) from pg_database;

			regards, tom lane



view thread (2+ messages)

Message-ID: <23951.1113845682@sss.pgh.pa.us>
Permalink:  ../23951.1113845682@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23951.1113845682@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gustavo-bartz@dextra.com.br
  Subject: Re: pg_enconding
  In-Reply-To: <23951.1113845682@sss.pgh.pa.us>
  References: <NFBBKOADOLGDLPMAAHMDGEDLDCAA.asimpson@i-55.com> <22439.1113841097@sss.pgh.pa.us> <4263E19D.4050008@dextra.com.br> <23951.1113845682@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox