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

From: huxm <huxm(at)cn(dot)fujitsu(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: How to configer the pg_hba record which the database name with "\n" ?
Date: 2013-08-01 06:20:59
Message-ID: 51F9FE4B.7050700@cn.fujitsu.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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
--------------------------------------------------

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2013-08-01 06:50:59 FailedAssertion on initdb with 9.4dev
Previous Message Simon Riggs 2013-08-01 06:04:14 Re: ALTER TABLE lock strength reduction patch is unsafe