pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gustavo Franklin Nóbrega - Planae <gfnobrega@planae.com.br>
To: 'Dextra - Gustavo Bartz Guedes' <gustavo-bartz@dextra.com.br>
To: pgsql-admin@postgresql.org
Subject: RES: pg_enconding
Date: Mon, 18 Apr 2005 14:24:40 -0300
Message-ID: <20050418172541.94C4A535AD@svr1.postgresql.org> (raw)
In-Reply-To: <4263E19D.4050008@dextra.com.br>

Hi Gustavo,

	pg_encoding has been removed, because is not need anymore. Try this
query to see what encoding a database have.

	SELECT pg_database.datname as "Database",
	       pg_user.usename as "Owner",
	       pg_encoding_to_char(pg_database.encoding) as "Encoding"FROM
pg_database, pg_user
	WHERE pg_database.datdba = pg_user.usesysid
	UNION
	SELECT pg_database.datname as "Database",
	       NULL as "Owner",
	       pg_encoding_to_char(pg_database.encoding) as "Encoding"FROM
pg_database
	WHERE pg_database.datdba NOT IN (SELECT usesysid FROM pg_user)
	ORDER BY "Database";

This query was copied from
http://archives.postgresql.org/pgsql-php/2001-10/msg00071.php. Thanks to
Alessandro Ferrarin.

Gustavo Franklin Nóbrega
gfnobrega@planae.com.br
Infraestrutura e Banco de Dados
Planae Tecnologia da Informação
(+55) 14 2106-3514
http://www.planae.com.br

-----Mensagem original-----
De: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] Em nome de Dextra - Gustavo Bartz
Guedes
Enviada em: segunda-feira, 18 de abril de 2005 13:35
Para: pgsql-admin@postgresql.org
Assunto: [ADMIN] pg_enconding

The version 8.0 has not the pg_encoding tool, so how can I find a 
encoding by its number on pg_database.enconding?

Thanks.

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq




Message-ID: <20050418172541.94C4A535AD@svr1.postgresql.org>
Permalink:  ../20050418172541.94C4A535AD@svr1.postgresql.org/
Also on:    postgresql.org/message-id/20050418172541.94C4A535AD@svr1.postgresql.org

 · 

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: gfnobrega@planae.com.br, gustavo-bartz@dextra.com.br
  Subject: Re: pg_enconding
  In-Reply-To: <20050418172541.94C4A535AD@svr1.postgresql.org>
  References: <4263E19D.4050008@dextra.com.br> <20050418172541.94C4A535AD@svr1.postgresql.org>

* 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