Re: [GENERAL] there is a way to deactivate type validation on 8.3.1????

2010-05-28 Thread alvherre
Excerpts from erobles's message of vie may 28 16:08:23 -0400 2010:

 it did'nt work  :-(  , because the script is  for  pg 8.2 and i have pg 
 7.2 and the table  pg_cast doesn't exist.  whatever is a good idea but i 
 need  to know the   table or tables  on postgres 7.2.

Of course it didn't work if you tried to run it in 7.2; you're supposed
to run it in the 8.3 server, not the old one.  The point is to make 8.3
sort-of compatible with the old behavior.

-- 
Álvaro Herrera alvhe...@commandprompt.com
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] Mysterious empty database name?

2010-05-25 Thread alvherre
Excerpts from Azlin Rahim's message of mar may 25 18:23:13 -0400 2010:
 In our database list, there is one 'mysterious' database with a blank name.
 We don't know how it got there.

Maybe somebody SQL-injected you and created it.

 Below is the output of pg_database. Does anyone have any idea why this is
 happening? Any way to remove the 'mysterious' database safely.

I'd investigate a bit more what's inside, before deleting it.  Maybe the
name has only whitespace or control chars.  You can use double quotes to
refer to such names.  For example, this is a name a space and a
backspace:

 =# create database  ^?;
CREATE DATABASE


You can see the ASCII chars that make up the name with something like this:

 =# select datname, ascii(substring(datname, generate_series(1, 
length(datname)), 1)) from pg_database;

  \x7F  |32
  \x7F  |   127

Now if somebody messed with an Unicode control char, I don't know what
to tell you.

-- 
Álvaro Herrera alvhe...@commandprompt.com
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] Thank you!

2003-08-20 Thread alvherre
See the attached file for details
---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]