Remove support for 'userlocks'?

Started by Bruce Momjianalmost 15 years ago5 messageshackers
Jump to latest
#1Bruce Momjian
bruce@momjian.us

According to our documentation, 'userlocks' were removed in PG 8.2:

http://developer.postgresql.org/pgdocs/postgres/runtime-config-developer.html

trace_userlocks (boolean)

If on, emit information about user lock usage. Output is the same as
for trace_locks, only for user locks.

User locks were removed as of PostgreSQL version 8.2. This option
currently has no effect.

This parameter is only available if the LOCK_DEBUG macro was defined
when PostgreSQL was compiled.

Should we remove this parameter and the supporting code since pre-8.2 is
now end-of-life?

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

#2Merlin Moncure
mmoncure@gmail.com
In reply to: Bruce Momjian (#1)
Re: Remove support for 'userlocks'?

On Fri, Jun 3, 2011 at 1:01 PM, Bruce Momjian <bruce@momjian.us> wrote:

According to our documentation, 'userlocks' were removed in PG 8.2:

       http://developer.postgresql.org/pgdocs/postgres/runtime-config-developer.html

       trace_userlocks (boolean)

       If on, emit information about user lock usage. Output is the same as
       for trace_locks, only for user locks.

       User locks were removed as of PostgreSQL version 8.2. This option
       currently has no effect.

       This parameter is only available if the LOCK_DEBUG macro was defined
       when PostgreSQL was compiled.

Should we remove this parameter and the supporting code since pre-8.2 is
now end-of-life?

hm, shouldn't it be replaced with trace_advisory_locks?

merlin

#3Josh Berkus
josh@agliodbs.com
In reply to: Bruce Momjian (#1)
Re: Remove support for 'userlocks'?

On 6/3/11 11:01 AM, Bruce Momjian wrote:

According to our documentation, 'userlocks' were removed in PG 8.2:

http://developer.postgresql.org/pgdocs/postgres/runtime-config-developer.html

I take it this doesn't trace advisory locks, and trace_locks does?

If so, then by all means remove the code. I highly doubt anyone is
using that option anyway ...

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com

#4Bruce Momjian
bruce@momjian.us
In reply to: Josh Berkus (#3)
Re: Remove support for 'userlocks'?

Josh Berkus wrote:

On 6/3/11 11:01 AM, Bruce Momjian wrote:

According to our documentation, 'userlocks' were removed in PG 8.2:

http://developer.postgresql.org/pgdocs/postgres/runtime-config-developer.html

I take it this doesn't trace advisory locks, and trace_locks does?

If so, then by all means remove the code. I highly doubt anyone is
using that option anyway ...

OK, that is something I will do for 9.2.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

#5Bruce Momjian
bruce@momjian.us
In reply to: Josh Berkus (#3)
Re: Remove support for 'userlocks'?

Josh Berkus wrote:

On 6/3/11 11:01 AM, Bruce Momjian wrote:

According to our documentation, 'userlocks' were removed in PG 8.2:

http://developer.postgresql.org/pgdocs/postgres/runtime-config-developer.html

I take it this doesn't trace advisory locks, and trace_locks does?

If so, then by all means remove the code. I highly doubt anyone is
using that option anyway ...

The attached, applied patch removes all "traces" of trace_userlocks.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

Attachments:

/rtmp/user_lockstext/x-diffDownload+9-43