psql source suggestions

Started by Jeroen T. Vermeulenalmost 23 years ago3 messages

I've been playing around with the source for psql, and as a result I
did some cleaning up in common.c. Would anyone be interested in seeing
patches for that? The main benefit is some eliminated code duplication,
plus the removal of some warts like 'continue' and 'break' where they
weren't needed.

Jeroen

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Jeroen T. Vermeulen (#1)
Re: psql source suggestions

"Jeroen T. Vermeulen" <jtv@xs4all.nl> writes:

I've been playing around with the source for psql, and as a result I
did some cleaning up in common.c. Would anyone be interested in seeing
patches for that? The main benefit is some eliminated code duplication,
plus the removal of some warts like 'continue' and 'break' where they
weren't needed.

Sure, send it along to pgsql-patches. Code beautification is a
worthwhile goal that we spend far too little time on.

Of course, beauty is in the eye of the beholder, so there may not be
universal agreement that you made improvements ;-). But send 'em along
and then we can debate the point.

regards, tom lane

#3Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Jeroen T. Vermeulen (#1)
Re: psql source suggestions

Sure. Shoot them over.

---------------------------------------------------------------------------

Jeroen T. Vermeulen wrote:

I've been playing around with the source for psql, and as a result I
did some cleaning up in common.c. Would anyone be interested in seeing
patches for that? The main benefit is some eliminated code duplication,
plus the removal of some warts like 'continue' and 'break' where they
weren't needed.

Jeroen

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073