Re: pgsql: Remove misleading hints about reducing the System V request size

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Remove misleading hints about reducing the System V request size
Date: 2012-07-03 15:08:27
Message-ID: CA+Tgmoa1m9Gv7R-xd5wcvavp-5f3P4Nq0gX_x5OCUcwcL2q8BQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Tue, Jul 3, 2012 at 10:45 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <rhaas(at)postgresql(dot)org> writes:
>> Remove misleading hints about reducing the System V request size.
>
> Removing the hints may be a good idea, but removing the request-size
> report seems like a very bad idea; especially now that the problem
> could easily be with SHMMIN not SHMMAX.
>
> Also, shouldn't these messages now print sysvsize not the original size?

Well, it isn't really gone:

errdetail("Failed system call was shmget(key=%lu, size=%lu, 0%o).",
(unsigned long) memKey, (unsigned long) size,
IPC_CREAT | IPC_EXCL | IPCProtection),

But if you want to work that back into the text somehow, I'm OK with
that. We just need some appropriate wording. I think that failures
are going to be rare enough here that it's not worth expending a lot
of effort to improve this, especially given that we don't really have
any basis for speculating on what the common failure modes are likely
to be; and splicing it into the remaining portion of the messages
seemed awkward. I have no desire to stand in the way of better ideas,
though, so suggest away...

> Also, shouldn't these messages now print sysvsize not the original size?

InternalIpcMemoryCreate() only gets the sysvsize.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2012-07-03 15:36:30 Re: pgsql: Make the pg_upgrade log files contain actual commands
Previous Message Tom Lane 2012-07-03 14:45:00 Re: pgsql: Remove misleading hints about reducing the System V request size