[HACKERS] How to configer the pg_hba record which the database name with "\n" ?

From: huxm <huxm(at)cn(dot)fujitsu(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: [HACKERS] How to configer the pg_hba record which the database name with "\n" ?
Date: 2013-08-01 08:27:40
Message-ID: 51FA1BFC.6020504@cn.fujitsu.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I've come across an issue within pg_hba configuration which it seems
cannot not set the record of a database name where there is a
newline(\n) in the name.

I created the database whihin psql like this:
create database "ab
cd";

I have tried all the following records, but seems not to work:
local "ab\ncd "user auth-method
local "ab\\\ncd "user auth-method
local "ab
cd "user auth-method

Does PostgreSQL 9.2's client authentication support to match the
database name with "\n" ?

Cheers
--
--------------------------------------------------
Hu Xiaoming
MAIL : huxm(at)cn(dot)fujitsu(dot)com
--------------------------------------------------

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

Browse pgsql-general by date

  From Date Subject
Next Message hamann.w 2013-08-01 08:59:56 incremental dumps
Previous Message David Johnston 2013-08-01 02:02:03 Re: Implicitly casting integer to bigint (9.1)