Re: copy to/from stdout using libpgtcl

From: lbayuk(at)mindspring(dot)com (ljb)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: copy to/from stdout using libpgtcl
Date: 2001-08-13 01:20:58
Message-ID: 9l7a1p$jm$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

g(dot)hintermayer(at)inode(dot)at wrote:
>...
>> PS It's the absence of PgWatchProc which kills it. I didn't upgrade it
>> to the "V2" channel type structure, so it should be compatible with older
>> Tcl's. But aside from gets and puts, I doubt any other file operations
>> would work on the handle during a copy.
>
>I'd expect also eof to work, and fileevent readable/writable.

eof is probably OK, except that once the copy is over the channel
becomes unreadable, so you probably only get one shot at [eof].
fileevent is really iffy. Probably no, since watchProc is
just dummy procedure and I think it is needed to make event
notification work.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message newsreader 2001-08-13 01:21:31 Re: Re: select distinct
Previous Message Stephan Szabo 2001-08-13 01:14:35 Re: Re: select distinct

Browse pgsql-patches by date

  From Date Subject
Next Message ljb 2001-08-13 01:28:22 Re: Re: copy to/from stdout using libpgtcl
Previous Message Joe Conway 2001-08-13 01:04:07 Re: bytea_ops