[HACKERS] Postgres Question

2000-10-25 Thread Jeff Tucker
HELP!   I used to be able to manually set a sequence id by typing:   SELECT setval('products_seq_id',100); but for some reason it is no longer working.  It would previously return 100 and now it returns nothing and the counter is not increased to 100.  Any suggestions on where to look?   Th

[HACKERS] bug in views/aggregates

2000-10-25 Thread Kovacs Zoltan Sandor
I'm not sure if this is a reported bug or not. SELECT statements with some aggregates on certain complex views can give terrible results. An example: CREATE TABLE master ( id int4 not null, no int4 check (no >= 0) default 0, primary key (id, no), started date check ((not started i

[HACKERS] Re: [BUGS] bug in views/aggregates

2000-10-25 Thread Tom Lane
Kovacs Zoltan Sandor <[EMAIL PROTECTED]> writes: > I'm not sure if this is a reported bug or not. SELECT statements with some > aggregates on certain complex views can give terrible results. An example: Aggregates on grouped views do not and cannot work in 7.0 or earlier releases, because the exi

[HACKERS] DBD::Pg::st execute failed: ERROR

2000-10-25 Thread andres mackiewicz
I have this problem:The next message appears when I try to make an INSERT into a table:   Connection refusedDBD::Pg::st execute failed: ERROR:  parser: parse error at or near "refused"   The situation is the next: I have a lot of processes making insertionsin the same database, and I suspect

Re: [HACKERS] [Fwd: [CORE SDI ADVISORY] MySQL weak authentication]

2000-10-25 Thread Marko Kreen
On Wed, Oct 25, 2000 at 10:27:15AM -0600, Bruce Guenter wrote: > On Tue, Oct 24, 2000 at 10:25:14AM -0400, Lamar Owen wrote: > > I am forwarding this not to belittle MySQL, but to hopefully help in the > > development of our own encryption protocol for secure password > > authentication over the n

Re: [HACKERS] [Fwd: [CORE SDI ADVISORY] MySQL weak authentication]

2000-10-25 Thread Marko Kreen
On Tue, Oct 24, 2000 at 10:25:14AM -0400, Lamar Owen wrote: > I am forwarding this not to belittle MySQL, but to hopefully help in the > development of our own encryption protocol for secure password > authentication over the network. > > The point being is that if we offer the protocol to do it,

Re: [HACKERS] --with-perl=/path/to/prefered/perl?

2000-10-25 Thread Bruce Momjian
> > On BSD/OS, there is perl (perl4) and perl5 (perl5). You have to set the > > name of the perl executable. > > The standard interface to any Autoconf configure script to override the > name of a program has always been and will always be setting environment > variables like this: > > PERL=per

[HACKERS] Re: libpq needs -lsocket on UnixWare

2000-10-25 Thread Larry Rosenman
* Peter Eisentraut <[EMAIL PROTECTED]> [001025 11:21]: > Larry Rosenman writes: > > > Is there any way to get libpq built with -lsocket on the unixware (and > > probably other SVR4's) to get the network stuff required ? > > Try now. OpenSSL should be working as well now. OpenSSL dies: cc -c -

Re: [HACKERS] --with-perl=/path/to/prefered/perl?

2000-10-25 Thread Peter Eisentraut
Bruce Momjian writes: > > Larry Rosenman <[EMAIL PROTECTED]> writes: > > > Would it be possible to add a path spec to the --with-perl configure > > > option so that if we have 2 or more PERL versions on the system we can > > > pick which one to use? > > > > Why do you need that, as opposed to j

RE: [HACKERS] Re: [INTERFACES] RE: JDBC now needs updates for large objects

2000-10-25 Thread Magnus Hagander
> > Idea: As we have this type of query in more than one part > of the source tree > > (ie: psql, jdbc, probably odbc), should we have a section in the > > documentation containing common queries, like: retrieving a > list of tables, > > views etc? > > That's a good thought. It'd be a useful

Re: [HACKERS] failed runcheck

2000-10-25 Thread Tom Lane
"Ross J. Reedstrom" <[EMAIL PROTECTED]> writes: >> Well, you clearly don't want to be fooled by temp relations. I was >> sorta visualizing a check based on relation OIDs instead of names... > Well, when I did a test implementation of OID filenames, lo these many > moons ago, I hacked around this

Re: [HACKERS] failed runcheck

2000-10-25 Thread Patrick Welche
On Mon, Oct 23, 2000 at 10:26:39AM -0400, Tom Lane wrote: > > Could you dig into it a little further and try to determine where the > NULL is coming from? All clear now! (I did do another cvs update in the meantime, but either way, I can't now repeat the previously repeatable core dump) Cheers,

Re: [HACKERS] length coerce for bpchar is broken since 7.0

2000-10-25 Thread Tom Lane
Tatsuo Ishii <[EMAIL PROTECTED]> writes: Can you give me any example for this case? >> >> UPDATE foo SET bpcharcol = 'a'::char || 'b'::char; >> >> UPDATE foo SET bpcharcol = upper('abc'); > In those cases above bpchar() will be called anyway, so I don't see > MULTIBYTE length coerce proble

Re: [HACKERS] --with-perl=/path/to/prefered/perl?

2000-10-25 Thread Bruce Momjian
> Larry Rosenman <[EMAIL PROTECTED]> writes: > > Would it be possible to add a path spec to the --with-perl configure > > option so that if we have 2 or more PERL versions on the system we can > > pick which one to use? > > Why do you need that, as opposed to just setting your PATH so that > con

Re: [HACKERS] [Fwd: [CORE SDI ADVISORY] MySQL weak authentication]

2000-10-25 Thread Lamar Owen
Bruce Guenter wrote: > On Tue, Oct 24, 2000 at 10:25:14AM -0400, Lamar Owen wrote: > > The point being is that if we offer the protocol to do it, we had better > > ensure its security, or someone WILL find the hole. Hopefully it will > > be people who want to help security and not exploit it. >

Re: [HACKERS] failed runcheck

2000-10-25 Thread Ross J. Reedstrom
On Sun, Oct 22, 2000 at 01:26:07AM -0400, Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > >> Next question: why is RelationInitLockInfo using > >> RelationGetPhysicalRelationName to get the input data for > >> IsSharedSystemRelationName --- shouldn't that be a test on logical > >> re

Re: [HACKERS] --with-perl=/path/to/prefered/perl?

2000-10-25 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001025 11:10]: > Larry Rosenman <[EMAIL PROTECTED]> writes: > > Would it be possible to add a path spec to the --with-perl configure > > option so that if we have 2 or more PERL versions on the system we can > > pick which one to use? > > Why do you need that, as

Re: [HACKERS] --with-perl=/path/to/prefered/perl?

2000-10-25 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: >> Larry Rosenman <[EMAIL PROTECTED]> writes: Would it be possible to add a path spec to the --with-perl configure option so that if we have 2 or more PERL versions on the system we can pick which one to use? >> >> Why do you need that, as

Re: [HACKERS] --with-perl=/path/to/prefered/perl?

2000-10-25 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001025 13:20]: > > Oh, so it wouldn't be a search path but a specific executable name > (with or without full path info). OK, that makes sense to me. > I've had different perls installed with different executable names > myself. Bingo. Larry

Re: [HACKERS] Unneccessary cmax in heap tuple ?

2000-10-25 Thread Tom Lane
[EMAIL PROTECTED] writes: > Ahh I did not know that there is need to test tuple for > validity for some past cid. I thought that we only need > to know whether tuple has been updated by current cid > to ensure that it will not be scanned again in the same > cid... Where am I wrong ? In situations

[HACKERS] Re: 7.0.x RPMs

2000-10-25 Thread Lamar Owen
Thomas Lockhart wrote: > Someone reported a problem with /usr/include/pgsql/os.h and the > underlying linux.h. I see a broken link for os.h, and somehow linux.h > does not appear, though on the surface the spec file seems to be doing > the right thing. > I'm working with 7.0.2-3mdk (which is the

[HACKERS] Re: [GENERAL] A rare error

2000-10-25 Thread Tom Lane
DaVinci <[EMAIL PROTECTED]> writes: > An extrange behavior with PostgreSql 7.0.2: > select * from foo where exists > (select * from foo) > works fine. But: > select * from foo where exists > ((select * from foo)) > shows an error: > ERROR: parser: parse error at or ne

RE: [HACKERS] Bogus-looking SSL code in postmaster wait loop

2000-10-25 Thread Magnus Hagander
> The postmaster contains this code just before it waits for input: > > #ifdef USE_SSL > for (curr = DLGetHead(PortList); curr; curr = DLGetSucc(curr)) > { > if (((Port *) DLE_VAL(curr))->ssl && > SSL_pending(((Port *) DLE_VAL(curr))->ssl) > 0) >

Re: [HACKERS] Bogus-looking SSL code in postmaster wait loop

2000-10-25 Thread Tom Lane
Magnus Hagander <[EMAIL PROTECTED]> writes: > SSL_pending() returns true when there is data in the SSL buffer of the > socket. > The problem is that since SSL uses block cipher, even if you read one just > byte from the socket (using ssl_read), OpenSSL will read a complete block > from the network

Re: [HACKERS] [Fwd: [CORE SDI ADVISORY] MySQL weak authentication]

2000-10-25 Thread Bruce Guenter
On Tue, Oct 24, 2000 at 10:25:14AM -0400, Lamar Owen wrote: > I am forwarding this not to belittle MySQL, but to hopefully help in the > development of our own encryption protocol for secure password > authentication over the network. > > The point being is that if we offer the protocol to do it,

Re: AW: AW: BLERe: AW: AW: [HACKERS] relation ### modified while in use

2000-10-25 Thread Philip Warner
At 09:36 25/10/00 +0200, Zeugswetter Andreas SB wrote: > >> I have not followed the entire thread, but if you are in a serializable OR >> repeatable-read transaction, > >Serializable and repeatable read are the same thing, different wording. Not last time I looked. RR ensures that rows you have s

Re: [HACKERS] --with-perl=/path/to/prefered/perl?

2000-10-25 Thread Bruce Momjian
> Would it be possible to add a path spec to the --with-perl configure > option so that if we have 2 or more PERL versions on the system we can > pick which one to use? We used to have a configure switch, but it is not there anymore. The way I do it is to add PERL=perl5 in /pgsql/src/Makefile.c

[HACKERS] Re: libpq needs -lsocket on UnixWare

2000-10-25 Thread Peter Eisentraut
Larry Rosenman writes: > Is there any way to get libpq built with -lsocket on the unixware (and > probably other SVR4's) to get the network stuff required ? Try now. OpenSSL should be working as well now. -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/

Re: [HACKERS] Re: [INTERFACES] RE: JDBC now needs updates for lar ge objects

2000-10-25 Thread Tom Lane
Magnus Hagander <[EMAIL PROTECTED]> writes: > Perhaps a good long-term solution for this would be to support > INFORMATION_SCHEMA per SQL92? This requires basic schema support, of course > :-) Yes, I think that's the right answer in the long run. Won't happen for a release or three though...

Re: [HACKERS] --with-perl=/path/to/prefered/perl?

2000-10-25 Thread Tom Lane
Larry Rosenman <[EMAIL PROTECTED]> writes: > Would it be possible to add a path spec to the --with-perl configure > option so that if we have 2 or more PERL versions on the system we can > pick which one to use? Why do you need that, as opposed to just setting your PATH so that configure finds t

Re: [HACKERS] Unneccessary cmax in heap tuple ?

2000-10-25 Thread devik
> > Why is there cmax in tuple ? cxxx is used to determine > > if tuple was inserted/deleted by current command or > > past command. Because one command can't both insert > > and delete the same tuple, only something like "cupd" > > might be needed and flag which tells you whether cupd > > is time

Re: [HACKERS] Mailing list archives available?

2000-10-25 Thread Vince Vielhaber
I sure hope this is a rerun 'cuze I did it yesterday. Vince. On Tue, 24 Oct 2000, The Hermit Hacker wrote: > On Tue, 24 Oct 2000, Vince Vielhaber wrote: > > > On Tue, 24 Oct 2000, The Hermit Hacker wrote: > > > > > > > > http://www.postgresql.org/mhonarc has them all listed .. not sure how

[HACKERS] 7.0.x RPMs

2000-10-25 Thread Thomas Lockhart
Someone reported a problem with /usr/include/pgsql/os.h and the underlying linux.h. I see a broken link for os.h, and somehow linux.h does not appear, though on the surface the spec file seems to be doing the right thing. I'm working with 7.0.2-3mdk (which is the same as your 7.0.2-3). Do you see

[HACKERS] Re: --with-perl=/path/to/prefered/perl?

2000-10-25 Thread Peter Eisentraut
Larry Rosenman writes: > Would it be possible to add a path spec to the --with-perl configure > option so that if we have 2 or more PERL versions on the system we can > pick which one to use? PERL=/else/where/perl ./configure ... -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/

Re: [HACKERS] Unneccessary cmax in heap tuple ?

2000-10-25 Thread Hiroshi Inoue
[EMAIL PROTECTED] wrote: > Hello, > Why is there cmax in tuple ? cxxx is used to determine > if tuple was inserted/deleted by current command or > past command. Because one command can't both insert > and delete the same tuple, only something like "cupd" > might be needed and flag which tells yo

AW: AW: BLERe: AW: AW: [HACKERS] relation ### modified while in use

2000-10-25 Thread Zeugswetter Andreas SB
> I have not followed the entire thread, but if you are in a serializable OR > repeatable-read transaction, Serializable and repeatable read are the same thing, different wording. > I would think that read-only statements will > need to keep some kind of lock on the rows they read (or the tabl

Re: [HACKERS] Re: Add support for

2000-10-25 Thread Pete Forman
Tom Lane writes: > >> This is an IRIX bug but I think that we need to work around it. > > > Roger, will do. > > I have changed configure in the CVS repository to test for > netinet/tcp.h per your recommendation. At your convenience, please > verify that it really does do the right thing

Re: [HACKERS] Re: how to access backend pid from libpq ?

2000-10-25 Thread Hannu Krosing
Tom Lane wrote: > > Hannu Krosing <[EMAIL PROTECTED]> writes: > > Ok, I found it from the libpq source: PQbackendPID > > > I still think it could be documented ;) > > It is. Strange how one starts to find things when you are told they are there ;) I could have sworn that doing grep PQbackendP

Re: [HACKERS] looks like we forgot something...

2000-10-25 Thread Larry Rosenman
* Larry Rosenman <[EMAIL PROTECTED]> [001024 17:12]: Ok, looks like my failure was a system issue. None of the PERL libperl.so.*'s had a symlink as libperl.so. I fixed this. and we build and pass regression. BUT, we still probably need the option to pick a specific PERL so the user can try di

Re: [HACKERS] Unneccessary cmax in heap tuple ?

2000-10-25 Thread Hiroshi Inoue
[EMAIL PROTECTED] wrote: > > > Why is there cmax in tuple ? cxxx is used to determine > > > if tuple was inserted/deleted by current command or > > > past command. Because one command can't both insert > > > and delete the same tuple, only something like "cupd" > > > might be needed and flag whi

[HACKERS] --with-perl=/path/to/prefered/perl?

2000-10-25 Thread Larry Rosenman
Would it be possible to add a path spec to the --with-perl configure option so that if we have 2 or more PERL versions on the system we can pick which one to use? Larry -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 (voice) Internet: [EMAIL PROTECTED]

[HACKERS] Unneccessary cmax in heap tuple ?

2000-10-25 Thread devik
Hello, Why is there cmax in tuple ? cxxx is used to determine if tuple was inserted/deleted by current command or past command. Because one command can't both insert and delete the same tuple, only something like "cupd" might be needed and flag which tells you whether cupd is time of insert or del

Re: [HACKERS] Two-phase commit

2000-10-25 Thread devik
hello, I'm not sure what will your lib solve ? For reliable distributed TX, each SQL server have to support two phase commit. It means to have at least PREPARE command which is identical to COMMIT only doesn't really commit (last commit bit is not written but TX is at commit edge and can't complai

Re: AW: BLERe: AW: AW: [HACKERS] relation ### modified whilein use

2000-10-25 Thread Hiroshi Inoue
Philip Warner wrote: > At 18:31 24/10/00 +0900, Hiroshi Inoue wrote: > > > > > >Zeugswetter Andreas SB wrote: > > > >> > > > Are there many applications which have many SELECT statements(without > >> > > > FOR UPDATE) in one tx ? > >> > > > >> > > Why not ? > >> > > > >> > It seems to me that mu