Skip site navigation (1) Skip section navigation (2)

Resurrecting some old patches

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Resurrecting some old patches
Date: 2006-02-21 12:50:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

Late last year I posted some patches for psql but they were deferred
pending the release of 8.2. However, they are not in the patch queue
so I thought I'd bring them up again now the release is done.

1. Dealing with a buggy readline on some platforms w.r.t. --as-needed.

The serious arguments for --as-needed have gone now we exclude various
libs from the main postgres binary. However, the other executables
still include a lot more libs than necessary.

2. Handling Ctrl-C pressed while running an external pager.

This bug still irritates me from time to time so it would be nice to
fix it for once and for all. Not to meantion the memory and file
descriptor leaks caused by the current code. However, the tree has
deviated significantly since that patch was posted. I have prepared a
version against HEAD if people are still interested. The details are in
this message:

The only change from that is that I've now also removed paging support
from the following programs:

createdb, createlang, createuser, dropdb, droplang, dropuser,
clusterdb, vacuumdb, reindexdb.

In so far as it's not clear how much they used the paging support
anyway, keeping it would require setting up of the signal handlers the
same way psql does since the code is shared. I figured it wasn't worth

The new patch is here but can be posted to -patches if there is
sufficient interest:

Have a nice day,
Martijn van Oosterhout   <kleptog(at)svana(dot)org>
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.


pgsql-hackers by date

Next:From: Andrew DunstanDate: 2006-02-21 13:36:48
Subject: windows / initdb oddness
Previous:From: Martijn van OosterhoutDate: 2006-02-21 09:42:25
Subject: Re: new feature: LDAP database name resolution

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group