Re: Syslog Facility Patch

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Syslog Facility Patch
Date: 2000-11-15 16:31:42
Message-ID: Pine.LNX.4.21.0011151724080.779-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Larry Rosenman writes:

> Ok, so what I think(?) needs to happen is the FIXME: tag needs to be
> handled. We need to code a version of src/backend/parser/scansup.c
> that doesn't use palloc, and also strips the apostrophes from the
> front and end of the string? This doesn't look that hard. Do I have
> "permission" to play with it, and submit a patch when I've got it
> fixed?

Some background information: The current

name = value

syntax is lexically compatible with the syntax of the SET command.
Therefore you can't have "funny" characters in 'value' unless
single-quoted.

Now in the context of the config file this seems overly restrictive.
Therefore I'd agree that we relax that a bit and allow more characters to
go into 'value' unquoted. I'm not quite sure which, but to prevent
confusion I'd prefer no semicolons, whitespace, or equal signs, possibly
others.

This would require making 'value' a different token type from 'name',
because the latter should not accept these characters.

Additionally, the FIXME ought to be done. I'd prefer it if it accepted
the exact same escapes and all as does the SQL parser/scanner. So it
ought to be a copy and paste from scansup.c. I'm not excited about
allowing double-quotes though.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-11-15 16:38:12 Re: Re: UUNET socket-file-location patch
Previous Message Wade D. Oberpriller 2000-11-15 16:30:01 PL/Perl on Solaris