Skip site navigation (1) Skip section navigation (2)

RES: pg_enconding

From: Gustavo Franklin Nóbrega - Planae <gfnobrega(at)planae(dot)com(dot)br>
To: "'Dextra - Gustavo Bartz Guedes'" <gustavo-bartz(at)dextra(dot)com(dot)br>,<pgsql-admin(at)postgresql(dot)org>
Subject: RES: pg_enconding
Date: 2005-04-18 17:24:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
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
	SELECT pg_database.datname as "Database",
	       NULL as "Owner",
	       pg_encoding_to_char(pg_database.encoding) as "Encoding"FROM
	WHERE pg_database.datdba NOT IN (SELECT usesysid FROM pg_user)
	ORDER BY "Database";

This query was copied from Thanks to
Alessandro Ferrarin.

Gustavo Franklin Nóbrega
Infraestrutura e Banco de Dados
Planae Tecnologia da Informação
(+55) 14 2106-3514

-----Mensagem original-----
De: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] Em nome de Dextra - Gustavo Bartz
Enviada em: segunda-feira, 18 de abril de 2005 13:35
Para: pgsql-admin(at)postgresql(dot)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?


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


In response to

  • pg_enconding at 2005-04-18 16:34:37 from Dextra - Gustavo Bartz Guedes

pgsql-admin by date

Next:From: Tom LaneDate: 2005-04-18 17:34:42
Subject: Re: pg_enconding
Previous:From: Bruce MomjianDate: 2005-04-18 17:08:33
Subject: Re: pg_temp_xxx schemas

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group