BUG #4752: sourceline in pg_settings indicates wrong number

From: "Fujii Masao" <masao(dot)fujii(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4752: sourceline in pg_settings indicates wrong number
Date: 2009-04-09 04:40:03
Message-ID: 200904090440.n394e34s051616@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 4752
Logged by: Fujii Masao
Email address: masao(dot)fujii(at)gmail(dot)com
PostgreSQL version: PostgreSQL 8.4d
Operating system: Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Description: sourceline in pg_settings indicates wrong number
Details:

Hi,

sourceline (in pg_settings) of the parameter line without '\n' indicates
wrong number as follows.

$ nl $PGDATA/postgresql.conf
1 shared_buffers = 32MB <-- this line doesn't contain '\n'
$ psql -c "SELECT sourceline FROM pg_settings WHERE name =
'shared_buffers'"
sourceline
------------
0
(1 row)

On the other hand, if the line has '\n', sourceline indicates the correct
number.

$ echo "shared_buffers = 32MB" > $PGDATA/postgresql.conf
$ nl $PGDATA/postgresql.conf
1 shared_buffers = 32MB <-- this line contains '\n'
$ psql -c "SELECT sourceline FROM pg_settings WHERE name =
'shared_buffers'"
sourceline
------------
1
(1 row)

Is this bug?

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Fujii Masao 2009-04-09 10:39:58 Re: BUG #4752: sourceline in pg_settings indicates wrong number
Previous Message John R Pierce 2009-04-07 18:23:25 Re: Backup -- Feridun Türk