[HACKERS] Vim!

2001-08-05 Thread Grant
Is it at all possible to use vim to interact with psql to provide input? That would be cool! ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your me

Re: [HACKERS] Re: [PATCHES] Allow IDENT authentication on local connections(Linux only)

2001-08-05 Thread Bruce Momjian
> Tom Lane writes: > > > Well, we need to talk about that. I like your idea of making ident auth > > "just work" on local connections better than Oliver's approach of > > inventing a separate auth-type keyword. > > This is exactly what I would not like to see. "ident" defines a specific > prot

Re: [HACKERS] partial index

2001-08-05 Thread Tom Lane
Tatsuo Ishii <[EMAIL PROTECTED]> writes: > test=# create index myindex on accounts(aid) where bid <> 0; > test=# explain select * from accounts where aid < 10 and bid <> 0; > and I got a log message: > DEBUG: clause_pred_clause_test: unknown pred_op > Is this normal? Yes. We might want to s

Re: [HACKERS] Possible solution for LIKE optimization

2001-08-05 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Wait, why isn't that the solution in the first place. Let's build the > index with an opclass that uses plain strcmp comparison. By George, I think you've got it! All we need is comparison ops and an opclass that use strcmp, even when USE_LOCALE is

[HACKERS] Sorry about that unsubscribe

2001-08-05 Thread Digital Wokan
I know. I forgot to put the -request in the e-mail address. ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [HACKERS] Possible solution for LIKE optimization

2001-08-05 Thread Peter Eisentraut
Tom Lane writes: > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > I have had an idea how the LIKE optimization problem could be solved. > > Hmm ... so in a non-ASCII locale, we'd have to look for an index on > strxfrm(A) rather than directly on A. And the index would need to > use a nonstandar

[HACKERS] partial index

2001-08-05 Thread Tatsuo Ishii
I have created a test data using pgbench, played with the partial index. test=# create index myindex on accounts(aid) where bid <> 0; CREATE test=# explain select * from accounts where aid < 10 and bid <> 0; and I got a log message: DEBUG: clause_pred_clause_test: unknown pred_op Is this norm

Re: [HACKERS] Idea for nested transactions / savepoints

2001-08-05 Thread Bruce Momjian
> > Bruce Momjian <[EMAIL PROTECTED]> writes: > > >> The complaints about WAL size amount to "we don't have the disk space > > >> to keep track of this, for long-running transactions". If it doesn't > > >> fit on disk, how likely is it that it will fit in memory? > > > > > Sure, we can put on th

[HACKERS] Re: Autoconf 2.50 is out (was Re: [PATCHES] Re: OpenUnix 8 Patch)

2001-08-05 Thread Larry Rosenman
* Peter Eisentraut <[EMAIL PROTECTED]> [010805 14:51]: > Tom Lane writes: > > > Just moments after writing that, I was startled to read on another > > mailing list that the long-mythical Autoconf 2.50 is released! > > Last I checked 2.51 was also released. AC 2.50 had some quality issues in > m

[HACKERS] Re: Linking a shared library against a C function

2001-08-05 Thread Peter Eisentraut
John Gray writes: > Is it OK just to link the .so of my backend function against the expat > library? i.e. to do > > gcc -shared -lexpat -o pgxml.so pgxml.o > > as the link stage (it seems to work fine) -or is there a portability > problem with this? On some platforms the dynamic loader will hav

Re: [HACKERS] Re: OID wraparound: summary and proposal

2001-08-05 Thread Hiroshi Inoue
mlw wrote: > > Hiroshi Inoue wrote: > > > > The analog of ROWID in PostgreSQL is TID rather than OID > > because TID is a physical address of a tuple within a table. > > However there's a significant difference. Unfortunately TID > > is transient. It is changed by UPDATE and VACUUM. > > Though TI

Re: [HACKERS] Possible solution for LIKE optimization

2001-08-05 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > I have had an idea how the LIKE optimization problem could be solved. Hmm ... so in a non-ASCII locale, we'd have to look for an index on strxfrm(A) rather than directly on A. And the index would need to use a nonstandard operator set --- ie, *non*

[HACKERS] Possible solution for LIKE optimization

2001-08-05 Thread Peter Eisentraut
I have had an idea how the LIKE optimization problem could be solved. The problem was that given the expression A LIKE (P || '%') where A is a column reference and P is a constant not containing wildcards, we wanted to find X and Y such that X <= A and A <= Y where X and Y are calculat

Re: [HACKERS] Re: Name for new VACUUM

2001-08-05 Thread Hannu Krosing
Tom Lane wrote: > > Hannu Krosing <[EMAIL PROTECTED]> writes: > > Just out of curiosity - does CLUSTER currently "practically rebuild > > a tables representation" ? > > CLUSTER currently *loses* most of a table's representation :-(. > It needs work. The easiest implememntaion of CLUSTER seems t

Re: [HACKERS] Re: Name for new VACUUM

2001-08-05 Thread Hannu Krosing
Tom Lane wrote: > > Hannu Krosing <[EMAIL PROTECTED]> writes: > > Just out of curiosity - does CLUSTER currently "practically rebuild > > a tables representation" ? > > CLUSTER currently *loses* most of a table's representation :-(. > It needs work. at least \h CLUSTER in psql seems to imply th

Re: [HACKERS] Idea for nested transactions / savepoints

2001-08-05 Thread Hannu Krosing
Tom Lane wrote: > > Bruce Momjian <[EMAIL PROTECTED]> writes: > >> The complaints about WAL size amount to "we don't have the disk space > >> to keep track of this, for long-running transactions". If it doesn't > >> fit on disk, how likely is it that it will fit in memory? > > > Sure, we can pu

[HACKERS] Re: [PATCHES] Allow IDENT authentication on local connections (Linux only)

2001-08-05 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: >> Well, we need to talk about that. I like your idea of making ident auth >> "just work" on local connections better than Oliver's approach of >> inventing a separate auth-type keyword. > This is exactly what I would not like to see. "ident" defines

[HACKERS] Re: Fw: Translators wanted

2001-08-05 Thread Peter Eisentraut
Tom Lane writes: > Yes. Peter noticed and fixed that typo in the fe-connect.c original a > few weeks ago --- but it looks like he forgot to update de.po to match. > I've committed the change to CVS. Thanks! Please, do not feel obligated to propogate every message fix to every po file immediate

Re: [HACKERS] Re: Autoconf 2.50 is out (was Re: [PATCHES] Re: OpenUnix 8 Patch)

2001-08-05 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Last I checked 2.51 was also released. AC 2.50 had some quality issues in > my mind which were probably fixed by now. If we see a need we can update; > I suppose it depends on the release schedule. (Note that some non-trivial > patches will be need

Re: [HACKERS] Mailbox messed up

2001-08-05 Thread Sean Chittenden
> Some of you got bounces over the last two weeks. I did't get any email. > Is there a way to have the messages of mailing list L between dates X and > Y have sent to me with a majordomo command? echo "help" | mail [EMAIL PROTECTED] -- Sean Chittenden PGP signature

[HACKERS] Mailbox messed up

2001-08-05 Thread Peter Eisentraut
Some of you got bounces over the last two weeks. I did't get any email. Is there a way to have the messages of mailing list L between dates X and Y have sent to me with a majordomo command? -- Peter Eisentraut [EMAIL PROTECTED] http://funkturm.homeip.net/~peter ---

[HACKERS] Re: [PATCHES] Allow IDENT authentication on local connections (Linuxonly)

2001-08-05 Thread Peter Eisentraut
Tom Lane writes: > Well, we need to talk about that. I like your idea of making ident auth > "just work" on local connections better than Oliver's approach of > inventing a separate auth-type keyword. This is exactly what I would not like to see. "ident" defines a specific protocol, with an id

[HACKERS] Re: Autoconf 2.50 is out (was Re: [PATCHES] Re: OpenUnix 8 Patch)

2001-08-05 Thread Peter Eisentraut
Tom Lane writes: > Just moments after writing that, I was startled to read on another > mailing list that the long-mythical Autoconf 2.50 is released! Last I checked 2.51 was also released. AC 2.50 had some quality issues in my mind which were probably fixed by now. If we see a need we can upd

[HACKERS] Re: config.guess on OpenUnix 8...

2001-08-05 Thread Peter Eisentraut
Larry Rosenman writes: > I believe Caldera has submitted changes to the autoconf people to > update config/config.guess to support OpenUNIX 8. For one thing, the autoconf people don't maintain config.{guess,sub}. (They don't much care for this confusion either.) Updates should be obtained from

Re: [HACKERS] Idea for nested transactions / savepoints

2001-08-05 Thread Bruce Momjian
> Bruce Momjian <[EMAIL PROTECTED]> writes: > >> The complaints about WAL size amount to "we don't have the disk space > >> to keep track of this, for long-running transactions". If it doesn't > >> fit on disk, how likely is it that it will fit in memory? > > > Sure, we can put on the disk if th

[HACKERS] Re: Failed compile PostgreSQL 7.1.2 on AIX 5.1

2001-08-05 Thread Peter Eisentraut
BigWhat.com writes: > ld: 0711-317 ERROR: Undefined symbol: .log > ld: 0711-317 ERROR: Undefined symbol: .ceil > ld: 0711-317 ERROR: Undefined symbol: .sqrt [...] Looks like configure failed to notice your math library (-lm). Please check the config.log file to see why. > ld: 0711-345 Use the

Re: [HACKERS] Idea for nested transactions / savepoints

2001-08-05 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: >> The complaints about WAL size amount to "we don't have the disk space >> to keep track of this, for long-running transactions". If it doesn't >> fit on disk, how likely is it that it will fit in memory? > Sure, we can put on the disk if that is better

Re: [HACKERS] Re: Name for new VACUUM

2001-08-05 Thread Tom Lane
Hannu Krosing <[EMAIL PROTECTED]> writes: > Just out of curiosity - does CLUSTER currently "practically rebuild > a tables representation" ? CLUSTER currently *loses* most of a table's representation :-(. It needs work. But since the whole point of CLUSTER is to physically rearrange the tuples o

Re: [HACKERS] Idea for nested transactions / savepoints

2001-08-05 Thread Bruce Momjian
> Bruce Momjian <[EMAIL PROTECTED]> writes: > > My idea is that we not put UNDO information into WAL but keep a List of > > rel ids / tuple ids in the memory of each backend and do the undo inside > > the backend. > > The complaints about WAL size amount to "we don't have the disk space > to keep

Re: [HACKERS] Re: Name for new VACUUM

2001-08-05 Thread Hannu Krosing
Tom Lane wrote: > > mlw <[EMAIL PROTECTED]> writes: > > ... people looked at me like I had two heads when I told them about > > "vacuum." It wasn't obvious to them what it did. > > I won't dispute that, but changing a command name that's been around for > ten or fifteen years strikes me as a rec

Re: [HACKERS] Name for new VACUUM

2001-08-05 Thread Hannu Krosing
Bruce Momjian wrote: > > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > >> Not necessarily. Concurrent VACUUM does truncate the relation if it can > > >> do so conveniently --- for example, it will successfully reclaim space > > >> if you do "DELETE FROM foo; VACUUM foo;". It just doesn't try

Re: [HACKERS] Re: OID wraparound: summary and proposal

2001-08-05 Thread mlw
Hiroshi Inoue wrote: > > The analog of ROWID in PostgreSQL is TID rather than OID > because TID is a physical address of a tuple within a table. > However there's a significant difference. Unfortunately TID > is transient. It is changed by UPDATE and VACUUM. > Though TIDs are unavailable for cri

Re: [HACKERS] Idea for nested transactions / savepoints

2001-08-05 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > My idea is that we not put UNDO information into WAL but keep a List of > rel ids / tuple ids in the memory of each backend and do the undo inside > the backend. The complaints about WAL size amount to "we don't have the disk space to keep track of this

RE: [HACKERS] Re: OID wraparound: summary and proposal

2001-08-05 Thread Hiroshi Inoue
The analog of ROWID in PostgreSQL is TID rather than OID because TID is a physical address of a tuple within a table. However there's a significant difference. Unfortunately TID is transient. It is changed by UPDATE and VACUUM. Though TIDs are unavailable for critical use, OIDs could compensate t

Re: [HACKERS] Question about todo item

2001-08-05 Thread Hannu Krosing
Tom Lane wrote: > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > I keep bugging Jan about it, since pre-7.1 and no one has come up with > > an idea. > > Well, if you want an idea: > > BEGIN; > > SELECT open_toast_object(toastable_column) FROM tab WHERE ...; > > -- app

Re: [HACKERS] Question about todo item

2001-08-05 Thread Hannu Krosing
Bruce Momjian wrote: > > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > > I agree we should have it, but I thought the problem was that we > > > couldn't come up with an API that worked. > > > > AFAIR, no one's really tried yet. I do not recall any proposals > > getting shot down ... > > I kee