Re: [HACKERS] Can't import date using copy

2000-10-27 Thread Tom Lane
Guy Fraser <[EMAIL PROTECTED]> writes: > I have tried reformatting dates in many ways but every thing I have > tried fails. As a rule, COPY will interpret incoming dates according to the current setting of the DATESTYLE variable. It'd help if you explained the date format you are trying to read

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Alex Pilosov
On Fri, 27 Oct 2000, Tom Lane wrote: > BTW, does it strike anyone else as peculiar that the host(), > broadcast(), network(), and netmask() functions yield results > of type text, rather than type inet? Seems like it'd be considerably > more useful if they returned values of type inet with mask

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Alex Pilosov
On Fri, 27 Oct 2000, Tom Lane wrote: > A more interesting question is whether the system needs to provide any > assisting functions that aren't there now. The lookup function you guys > are postulating seems like it would be (in the simple cases) > create function my_network(inet) returns

[HACKERS] Re: Second proposal: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001027 20:45]: > Sigh ... I was really hoping not to get drawn into fixing these issues > for 7.1, but ... [SNIP] Works WELL for me. THANK YOU, Tom. LER -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 (voice) Internet: [E

Re: [HACKERS] Gram.y patches for better parenthesis handling.

2000-10-27 Thread Tom Lane
"Kevin O'Gorman" <[EMAIL PROTECTED]> writes: > 2) It does NOT preserve the odd syntax I found when I started looking > at this, where a SELECT statement could begin with parentheses. Thus, > (SELECT a from foo) order by a; > fails. Um, as a general rule that's not an acceptable limitation. Co

Re: [HACKERS] Re: [GENERAL] A rare error

2000-10-27 Thread Tom Lane
"Kevin O'Gorman" <[EMAIL PROTECTED]> writes: > All that being said, I'm not sure enough notice has been taken of one > aspect of the changes already in place, and likely to become more > pronounced. It may be okay with everybody, but I don't want it to be > a big surprise: queries may no longer

Re: [HACKERS] Re: [GENERAL] A rare error

2000-10-27 Thread Tom Lane
"Kevin O'Gorman" <[EMAIL PROTECTED]> writes: > This just occurred to me: how would you sort the results of this query? > The path of least resistance from the way things work now would be most > non-obvious: put the ORDER BY on the leftmost query. It looks like this > (SELECT * INTO newtable FROM

Re: [HACKERS] Re: [GENERAL] A rare error

2000-10-27 Thread Alex Pilosov
> (SELECT * INTO newtable FROM table1) UNION (SELECT * FROM table2); Possibly a silly (and definitely not standards-conformant) suggestion: Maybe grammar should be amended to allow for (SELECT * FROM table1) UNION (SELECT * FROM table2) INTO newtable i.e. union_expr: (select_expr) union (unio

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Tom Lane
e) have a function network(inet) which would look up the address in a table of networks using longest-prefix-match. I.E. something similar to: >> No need. Let the user do it themselves. Similar to what we did for >> macaddr's back in the summer. > Yeah, it can be user-defined (or a c

Re: [HACKERS] Can't import date using copy

2000-10-27 Thread Stephan Szabo
On Fri, 27 Oct 2000, Guy Fraser wrote: > Hi > > I have tried reformatting dates in many ways but every thing I have > tried fails. I've been able to use copy to import date values in a simple test: create table dt (a date); copy dt from stdin; 01-12-2000 12-11-1999 \. put the date values in fi

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Alex Pilosov
one more small request: int8_inet(inet) and inet_int8(int8): functions to convert an inet to an int8 and back. (not an int4, since postgres int4s are signed) This allows me to do some additional manipulations on values. (ie. given a host, determine its default gateway, for us, it is always first

[HACKERS] Zoltan, call home!

2000-10-27 Thread Thomas Lockhart
Hi Zoltan. Your recent mail has had a reply-to of Kovacs Zoltan Sandor <[EMAIL PROTECTED]> and a couple of messages from me to you have bounced. It looks like it reaches the machine, but says that the "user is unknown". Is that really a good address for you? Hope to hear from you...

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001027 17:54]: > Alex Pilosov <[EMAIL PROTECTED]> writes: > > On Fri, 27 Oct 2000, Tom Lane wrote: > >> BTW, does it strike anyone else as peculiar that the host(), > >> broadcast(), network(), and netmask() functions yield results > >> of type text, rather than typ

[HACKERS] Notice: rpath in use

2000-10-27 Thread Peter Eisentraut
Picking up from a discussion several months back, the build now uses the -rpath option (or -Wl,-R or whatever yours uses) to store the location of the shared libraries into the executables and the shared libraries themselves. That means that the LD_LIBRARY_PATH/ld.so.conf thing should no longer b

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Alex Pilosov <[EMAIL PROTECTED]> [001027 21:20]: > Please read below if the whole thing with inet/cidr doesn't make you puke > yet ;) The semi-longish proposal is at the bottom. > > On Fri, 27 Oct 2000, Tom Lane wrote: [snip] > Actually, now that I think longer about the whole scheme in terms o

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Tom Lane
Larry Rosenman <[EMAIL PROTECTED]> writes: > Fine, but host() rejects CIDR types right now What's your point? network() doesn't behave the way you want right now, either. regards, tom lane

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Alex Pilosov
On Fri, 27 Oct 2000, Tom Lane wrote: > BTW, does it strike anyone else as peculiar that the host(), > broadcast(), network(), and netmask() functions yield results > of type text, rather than type inet? Seems like it'd be considerably > more useful if they returned values of type inet with maskl

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Tom Lane
I wrote: > There is no subset type that corresponds to "valid host addresses > only" --- if there were, it would be a subset of INET but would have > no valid values in common with CIDR. I take that back --- CIDR accepts w.x.y.z/32 for any w.x.y.z, which would include valid host addresses. (But

[HACKERS] Second proposal: what to do about INET/CIDR

2000-10-27 Thread Tom Lane
Sigh ... I was really hoping not to get drawn into fixing these issues for 7.1, but ... It seems like much of the problem is that there isn't any easy way to choose between CIDR-style display format ('127.1/16') and INET-style format ('127.1.0.0/16'). We need to bite the bullet and add conversio

[HACKERS] Proposal for DROP TABLE rollback mechanism

2000-10-27 Thread Tom Lane
(This is mostly directed at Vadim, but kibitzing is welcome.) Here's what I plan to do to make DROP TABLE rollbackable and clean up the handling of CREATE TABLE rollback. Comments? Overview: 1. smgrcreate() will create the file for the relation same as it does now, and will add the rel's RelF

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Alex Pilosov
Please read below if the whole thing with inet/cidr doesn't make you puke yet ;) The semi-longish proposal is at the bottom. On Fri, 27 Oct 2000, Tom Lane wrote: > Alex Pilosov <[EMAIL PROTECTED]> writes: > > We should have as much error-checking as possible. > > How so? Without a netmask you

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Alex Pilosov
On Fri, 27 Oct 2000, Larry Rosenman wrote: > Not necessarily, especially for novices. Some people may want to > store the netmask with the IP of a host (think ifconfig being > AUTOGEN'd). For a single host? Or for a network of hosts? But yes, I see your point if a single host has x interfaces,

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Tom Lane
Alex Pilosov <[EMAIL PROTECTED]> writes: > We should have as much error-checking as possible. Only possible with a much tighter definition of what the intended use of each type is. For example, you seem to be saying that broadcast addresses aren't valid inet values, with which I do not agree unl

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Alex Pilosov <[EMAIL PROTECTED]> [001027 21:36]: > On Fri, 27 Oct 2000, Larry Rosenman wrote: > > > Not necessarily, especially for novices. Some people may want to > > store the netmask with the IP of a host (think ifconfig being > > AUTOGEN'd). > For a single host? Or for a network of hosts

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Tom Lane
Alex Pilosov <[EMAIL PROTECTED]> writes: > On Fri, 27 Oct 2000, Tom Lane wrote: >> BTW, does it strike anyone else as peculiar that the host(), >> broadcast(), network(), and netmask() functions yield results >> of type text, rather than type inet? > I absolutely agree, except for network(), whic

Re: [HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Lamar Owen
Bruce Momjian wrote: > > > However, the upgrade gotcha has left a very bitter taste in more than > > one user's mouth. I'll not say more about that now, as I've said quite > > enough in the past. And I'm still trying to figure out enough of the > > internals of the storage manager to try to wri

Re: [HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Bruce Momjian
> Ok, here goes: Cool, a list. > * Location-agnostic installation. Documentation (which I'll be happy to > contribute) on that. Peter E is already working in this area. Getting > the installation that 'make install' spits out massaged into an FHS > compliant setup is the majority of the RP

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001027 21:53]: > e) have a function network(inet) which would look up the address in a > table of networks using longest-prefix-match. I.E. something similar to: > > >> No need. Let the user do it themselves. Similar to what we did for > >> macaddr's bac

Re: [HACKERS] Idea: cross-check versions during initdb

2000-10-27 Thread Peter Eisentraut
Tom Lane writes: > But it's still dependent on the user's PATH to point to the right > executables, no? This is what's puzzling me. There's code in there that tries to locate initdb and uses the executables and bki files (7.0 only) from the same tree. Evidently this code does not always work r

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Alex Pilosov
On Fri, 27 Oct 2000, Tom Lane wrote: > Alex Pilosov <[EMAIL PROTECTED]> writes: > > Also, I agree with Larry that cidr _must_ be printed with 4 octets in > > them, whether they are 0 or not. (i.e. it should print 207.158.72.0/24) > > > This is the standard way of specifying addresses in all netw

Re: [HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Bruce Momjian
> However, the upgrade gotcha has left a very bitter taste in more than > one user's mouth. I'll not say more about that now, as I've said quite > enough in the past. And I'm still trying to figure out enough of the > internals of the storage manager to try to write the migration tools > myself.

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Tom Lane
Larry Rosenman <[EMAIL PROTECTED]> writes: > I.E. for select network('207.158.72.0/24') > I get > 207.158.72.0 To my mind that should be done with host(), not network(). If you strip the masklen information then what you have is no longer a network specification, so expecting a function named n

[HACKERS] Problem with installing as root

2000-10-27 Thread Kevin O'Gorman
I'm back a bit from the tip of the CVS tree, so this might not be current, but as of around 8 October, installing as root gets in the way of later operations. I think this is an artifact of having Perl in the build. I did a 'su root' and a 'make install', then as my normal user self, attempted t

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001027 17:41]: > Larry Rosenman <[EMAIL PROTECTED]> writes: > > Fine, but host() rejects CIDR types right now > > What's your point? network() doesn't behave the way you want right now, > either. Fine, network() can return CIDR (207.158.72/24), but allow host(

Re: [HACKERS] Idea: cross-check versions during initdb

2000-10-27 Thread Peter Eisentraut
Larry Rosenman writes: > Sounds like an easy one for a newbie to pick up. Let me look at it, > but I think I'd like dibs on it. Actually, initdb of 7.1 gets the directory location of the bootstrap files wired in at build time. The only way to override it is to use the -L option. So the probl

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Alex Pilosov
On Fri, 27 Oct 2000, Tom Lane wrote: > The way I'm visualizing this, INET is a generalized type that will store > any 4-octet address plus any netmask width from 1 to 32. This includes > not only host addresses, but network specs and broadcast addresses. > CIDR is a subset type that only accepts

[HACKERS] Gram.y patches for better parenthesis handling.

2000-10-27 Thread Kevin O'Gorman
Okay, here's my attempt at fixing the problems with parentheses in subqueries. It passes the normal 'runcheck' tests, and I've tried a few simple things like select 1 as foo union (select 2) order by foo; There are a few things that it doesn't do that have been talked about here at l

[HACKERS] Re: [GENERAL] A rare error

2000-10-27 Thread Kevin O'Gorman
Kevin O'Gorman wrote: > > [EMAIL PROTECTED] wrote: > > > > "Kevin O'Gorman" <[EMAIL PROTECTED]> writes: > > Anyway, the bottom line of all this rambling is that if you can get > > rid of the distinction between SelectStmt and select_clause altogether, > > that would be fine with me. You might co

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001027 17:04]: > BTW, does it strike anyone else as peculiar that the host(), > broadcast(), network(), and netmask() functions yield results > of type text, rather than type inet? Seems like it'd be considerably > more useful if they returned values of type inet w

Re: [HACKERS] Idea: cross-check versions during initdb

2000-10-27 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: >> But it's still dependent on the user's PATH to point to the right >> executables, no? > This is what's puzzling me. There's code in there that tries to locate > initdb and uses the executables and bki files (7.0 only) from the same > tree. Yeah, b

[HACKERS] Re: [GENERAL] A rare error

2000-10-27 Thread Kevin O'Gorman
[EMAIL PROTECTED] wrote: > > "Kevin O'Gorman" <[EMAIL PROTECTED]> writes: > Anyway, the bottom line of all this rambling is that if you can get > rid of the distinction between SelectStmt and select_clause altogether, > that would be fine with me. You might consider looking at whether you > can

Re: [HACKERS] LIMIT in DECLARE CURSOR: request for comments

2000-10-27 Thread Philip Warner
At 12:18 27/10/00 -0400, Tom Lane wrote: > >1. If DECLARE CURSOR does not contain a LIMIT, continue to plan on the >basis of 10%-or-so fetch (I'd consider anywhere from 5% to 25% to be >just as reasonable, if people want to argue about the exact number; >perhaps a SET variable is in order?). 10%

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001027 17:29]: > Larry Rosenman <[EMAIL PROTECTED]> writes: > > I.E. for select network('207.158.72.0/24') > > I get > > 207.158.72.0 > > To my mind that should be done with host(), not network(). If you strip > the masklen information then what you have is no lo

Re: [HACKERS] LIMIT in DECLARE CURSOR: request for comments

2000-10-27 Thread Tom Lane
Philip Warner <[EMAIL PROTECTED]> writes: > At 12:18 27/10/00 -0400, Tom Lane wrote: >> 1. If DECLARE CURSOR does not contain a LIMIT, continue to plan on the >> basis of 10%-or-so fetch (I'd consider anywhere from 5% to 25% to be >> just as reasonable, if people want to argue about the exact numb

Re: [HACKERS] Idea: cross-check versions during initdb]

2000-10-27 Thread Bruce Momjian
> Peter Eisentraut <[EMAIL PROTECTED]> writes: > > Bonus project: find out why initdb is picking up the wrong files in the > > first place. > > User error is a sufficient explanation in the cases I've seen: wrong > postgres executable found first in PATH, PGLIB or -L pointing to wrong > place, e

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Tom Lane
BTW, does it strike anyone else as peculiar that the host(), broadcast(), network(), and netmask() functions yield results of type text, rather than type inet? Seems like it'd be considerably more useful if they returned values of type inet with masklen = 32 (except for network(), which would kee

Re: [HACKERS] Idea: cross-check versions during initdb

2000-10-27 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Actually, initdb of 7.1 gets the directory location of the bootstrap files > wired in at build time. The only way to override it is to use the -L > option. So the problem seems a lot less grave that way. That does seem to reduce the odds of wrong-b

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Alex Pilosov
On Fri, 27 Oct 2000, Tom Lane wrote: > Larry Rosenman <[EMAIL PROTECTED]> writes: > > OK, what I really meant was a way to coerce a CIDR entity to INET so > > that host() can work with a CIDR type to print all 4 octets. > > Hm. I don't see any really good reason why host() rejects CIDR input

[HACKERS] Can't import date using copy

2000-10-27 Thread Guy Fraser
Hi I have tried reformatting dates in many ways but every thing I have tried fails. I used insert and update to create and change dates with different styles and was successful. Is this a known bug? Is their a fix for this bug? or Do I have to import date variables using insert/update statem

Re: [HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Lamar Owen
Trond Eivind Glomsrød wrote: > Lamar Owen <[EMAIL PROTECTED]> writes: > > Unfortunately RPM deems a dependency upon libpq.so.2.0 to not be > > fulfilled by libpq.so.2.1 (how _can_ it know? A client linked to 2.0 > > might fail if 2.1 were to be loaded under it (hypothetically)). > There usually

(forw) Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
I can't type today - Forwarded message from Larry Rosenman <[EMAIL PROTECTED]> - From: Larry Rosenman <[EMAIL PROTECTED]> Subject: Re: [HACKERS] Summary: what to do about INET/CIDR Date: Fri, 27 Oct 2000 15:09:36 -0500 Message-ID: <[EMAIL PROTECTED]> User-Agent: Mutt/1.3.10i X-Mailer:

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001027 15:14]: > Alex Pilosov <[EMAIL PROTECTED]> writes: > > Also, I agree with Larry that cidr _must_ be printed with 4 octets in > > them, whether they are 0 or not. (i.e. it should print 207.158.72.0/24) > > > This is the standard way of specifying addresses in

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Tom Lane
Alex Pilosov <[EMAIL PROTECTED]> writes: > Also, I agree with Larry that cidr _must_ be printed with 4 octets in > them, whether they are 0 or not. (i.e. it should print 207.158.72.0/24) > This is the standard way of specifying addresses in all network equipment. > RFC specifies that, just the li

[HACKERS] Re:RPM dependencies (Was: 7.0 vs. 7.1 (was: latest version?))

2000-10-27 Thread Lamar Owen
[BCC to Hackers -- cc: to PORTS, as, as Bruce correctly pointed out, that's where this discussion belongs.] Trond Eivind Glomsrød wrote: > Lamar Owen <[EMAIL PROTECTED]> writes: > > My gut feel is that RedHat may be better off shipping 7.0.x if the > > library version numbers are a contributory p

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Tom Lane
Larry Rosenman <[EMAIL PROTECTED]> writes: > OK, what I really meant was a way to coerce a CIDR entity to INET so > that host() can work with a CIDR type to print all 4 octets. Hm. I don't see any really good reason why host() rejects CIDR input in the first place. What's wrong with producing

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Alex Pilosov
On Fri, 27 Oct 2000, Larry Rosenman wrote: > and network(cidr) should print ONLY the octets, not the mask... Agreed. There's a function to get the mask size, and the network should just return the network. Otherwise, it is impossible to use. -alex

Re: [HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Lamar Owen
Bruce Momjian wrote: > > I appreciate the fact that we are not here to make it easy for > > distributors to package our software. I also appreciate the fact that > > if you don't at least make an effort to work with major distributors > > (and RedHat, TurboLinux, Caldera, and SuSE together comp

Re: [HACKERS] Idea: cross-check versions during initdb

2000-10-27 Thread Peter Eisentraut
> > 1. Add a --version switch to postgres or postmaster to print its version > > and exit. postmaster already has this. Someone can copy the code into tcop/postgres.c as well. But should we not use the catversion for this? > > to a compatible library directory. Alternatively, add version info

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Peter Eisentraut
Tom Lane writes: > 1. A data value like '10.1.2.3/16' is a legal INET value (it implies > the host 10.1.2.3 in the network 10.1/16) but not a legal CIDR value. > Hence, cidr_in should reject such a value. Up to now it hasn't. Nod. > 2. We do not have a datatype corresponding strictly to a ho

Re: [HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Trond Eivind Glomsrød
Lamar Owen <[EMAIL PROTECTED]> writes: > My gut feel is that RedHat may be better off shipping 7.0.x if the > library version numbers are a contributory problem. We could provide compat-packages with just neeeded libraries. > The data upgrade problem is a bigger problem. To which RedHat migh

[HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Trond Eivind Glomsrød
Lamar Owen <[EMAIL PROTECTED]> writes: > Unfortunately RPM deems a dependency upon libpq.so.2.0 to not be > fulfilled by libpq.so.2.1 (how _can_ it know? A client linked to 2.0 > might fail if 2.1 were to be loaded under it (hypothetically)). > > Now, that doesn't directly effect the PostgreSQL

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Alex Pilosov <[EMAIL PROTECTED]> [001027 14:43]: > On Fri, 27 Oct 2000, Larry Rosenman wrote: > > ler=# select * from ler_test; > > net | host > > ---+-- > > 207.158.72/24 | 207.158.72.11/24 > > (1 row) > > > > ler=# select host(net::inet) from ler_

[HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Bruce Momjian
[ Charset ISO-8859-1 unsupported, converting... ] > Bruce Momjian <[EMAIL PROTECTED]> writes: > > > Let them. It is their decision. Frankly, I have seen this attitude > > before, and I don't like it. Just the mention that "Gee, if you don't > > cooperate, we may yank you," is really a veiled t

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Alex Pilosov
On Fri, 27 Oct 2000, Larry Rosenman wrote: > ler=# select * from ler_test; > net | host > ---+-- > 207.158.72/24 | 207.158.72.11/24 > (1 row) > > ler=# select host(net::inet) from ler_test; > ERROR: CIDR type has no host part > ERROR: CIDR type has

[HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Trond Eivind Glomsrød
Bruce Momjian <[EMAIL PROTECTED]> writes: > Let them. It is their decision. Frankly, I have seen this attitude > before, and I don't like it. Just the mention that "Gee, if you don't > cooperate, we may yank you," is really a veiled threat. Now, I know you > aren't saying that, but the "if yo

Re: [HACKERS] Idea: cross-check versions during initdb

2000-10-27 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Bonus project: find out why initdb is picking up the wrong files in the > first place. User error is a sufficient explanation in the cases I've seen: wrong postgres executable found first in PATH, PGLIB or -L pointing to wrong place, etc. The chang

Re: [HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Lamar Owen
Tom Lane wrote: > > Lamar Owen <[EMAIL PROTECTED]> writes: > > Unfortunately RPM deems a dependency upon libpq.so.2.0 to not be > > fulfilled by libpq.so.2.1 (how _can_ it know? A client linked to 2.0 > > might fail if 2.1 were to be loaded under it (hypothetically)). > > If so, I claim RPM is

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Inet is supposed to be host address, with optional network specification. Agreed. As such, it probably should always display all 4 octets regardless of the maskwidth. It doesn't do that at the moment: regression=# select '127.0.0.1/8'::inet; ?col

Re: [HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Bruce Momjian
> > To answer your question, there are no pending changes in libpq that > > would mandate a major version bump (ie, nothing binary-incompatible, > > AFAIK). We could ship it with the exact same version number, but then > > how are people to tell whether they have a 7.0 or 7.1 libpq? > > If there

[HACKERS] LIMIT in DECLARE CURSOR: request for comments

2000-10-27 Thread Tom Lane
Hiroshi and I had a discussion last night that needs to reach a wider audience than just the bystanders on pgsql-committers. Let me see if I can reconstruct the main points. In 7.0, a LIMIT clause can appear in a DECLARE CURSOR, but it's ignored: play=> select * from vv1; f1 -

[HACKERS] Mailing List Slowdowns ...

2000-10-27 Thread The Hermit Hacker
As a large part of you will have noticed by now, this past week has been killer on the mailing lists. One of the web clients on that machine decided to not warn us of one of their countries holidays, and, as a result, we got hit with a diluge of hits, similar to a slashdot effect ... We ordered

Re: [HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Trond Eivind Glomsrød
Tom Lane <[EMAIL PROTECTED]> writes: > Lamar Owen <[EMAIL PROTECTED]> writes: > > Unfortunately RPM deems a dependency upon libpq.so.2.0 to not be > > fulfilled by libpq.so.2.1 (how _can_ it know? A client linked to 2.0 > > might fail if 2.1 were to be loaded under it (hypothetically)). You lin

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001027 09:49]: > Larry Rosenman <[EMAIL PROTECTED]> writes: > > Also a way to get network (.0) and broadcast (all ones) for a cidr > > block out of our stuff. > > network() and broadcast() have been there all along ... OK, what I really meant was a way to coerce a

[HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Bruce Momjian
> > What would be good is for someone to constructively make a posting about > > the known problems, and come up with acceptable solutions. Asking us to > > fix it really isn't going to help because we don't deal with RPM's here, > > and we don't have enough free time to make significant changes

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Larry Rosenman <[EMAIL PROTECTED]> [001027 11:08]: > * Tom Lane <[EMAIL PROTECTED]> [001027 09:49]: > > Larry Rosenman <[EMAIL PROTECTED]> writes: > > > Also a way to get network (.0) and broadcast (all ones) for a cidr > > > block out of our stuff. > > > > network() and broadcast() have been

Re: [HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Bruce Momjian
> Lamar Owen <[EMAIL PROTECTED]> writes: > > Unfortunately RPM deems a dependency upon libpq.so.2.0 to not be > > fulfilled by libpq.so.2.1 (how _can_ it know? A client linked to 2.0 > > might fail if 2.1 were to be loaded under it (hypothetically)). > > If so, I claim RPM is broken. > > The wh

Re: [HACKERS] Re: [COMMITTERS] pgsql/src/backend/nodes (copyfuncs.c outfuncs.c print.c)

2000-10-27 Thread Ross J. Reedstrom
On Fri, Oct 27, 2000 at 09:21:23PM +1000, Philip Warner wrote: > > [To hackers this time] > > At 20:59 26/10/00 -0400, Tom Lane wrote: > >Hiroshi Inoue <[EMAIL PROTECTED]> writes: > >> Yes I want to give optimizer a hint "return first rows fast". > >> When Jan implemented LIMIT first,there was

Re: [HACKERS] Select syntax (broken in current CVS tree)

2000-10-27 Thread Tom Lane
"Kevin O'Gorman" <[EMAIL PROTECTED]> writes: > I've been poking into the syntax in gram.y, and finding > that the provision of parentheses for SELECT statements > is pretty broken. I have previously posted examples of > odd things. On closer examination, it appears to need > an overhaul. > Ther

[HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Lamar Owen
Bruce Momjian wrote: > Lamar Owen wrote: > > May I ask: is it necessary? Have there been version-bumping changes to > > libpq since 7.0.x? (With the rate that necessary improvement is > > happening to PostgreSQL, probably). > No, only major releases have bumps. > See pgsql/src/tools/RELEASE_C

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Larry Rosenman <[EMAIL PROTECTED]> [001027 09:51]: > * Tom Lane <[EMAIL PROTECTED]> [001027 09:49]: > > Larry Rosenman <[EMAIL PROTECTED]> writes: > > > Also a way to get network (.0) and broadcast (all ones) for a cidr > > > block out of our stuff. > > > > network() and broadcast() have been

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001027 09:49]: > Larry Rosenman <[EMAIL PROTECTED]> writes: > > Also a way to get network (.0) and broadcast (all ones) for a cidr > > block out of our stuff. > > network() and broadcast() have been there all along ... but don't work on CIDR types. LER > >

Re: [HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Tom Lane
Lamar Owen <[EMAIL PROTECTED]> writes: > Unfortunately RPM deems a dependency upon libpq.so.2.0 to not be > fulfilled by libpq.so.2.1 (how _can_ it know? A client linked to 2.0 > might fail if 2.1 were to be loaded under it (hypothetically)). If so, I claim RPM is broken. The whole point of maj

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Tom Lane
Larry Rosenman <[EMAIL PROTECTED]> writes: > Also a way to get network (.0) and broadcast (all ones) for a cidr > block out of our stuff. network() and broadcast() have been there all along ... regards, tom lane

Re: [HACKERS] more multibyte/After TGL...

2000-10-27 Thread Larry Rosenman
Todays Sources still die: cc -c -I/usr/local/include -I../../../src/include -I../../../src/interfaces/libpq -O -K inline -o copy.o copy.c cc -c -I/usr/local/include -I../../../src/include -I../../../src/interfaces/libpq -O -K inline -o startup.o startup.c cc -c -I/usr/local/include -I../../../s

[HACKERS] Re: [COMMITTERS] pgsql/src/backend/nodes (copyfuncs.c outfuncs.c print.c)

2000-10-27 Thread Philip Warner
[To hackers this time] At 20:59 26/10/00 -0400, Tom Lane wrote: >Hiroshi Inoue <[EMAIL PROTECTED]> writes: >> Yes I want to give optimizer a hint "return first rows fast". >> When Jan implemented LIMIT first,there was an option >> "LIMIT ALL" and it was exactly designed for the purpose. > >Well

[HACKERS] Re: [COMMITTERS] pgsql/src/backend/nodes (copyfuncs.c outfuncs.c print.c)

2000-10-27 Thread Philip Warner
[To hackers this time] At 12:11 27/10/00 +0900, Hiroshi Inoue wrote: > >For example,LIMIT ALL means LIMIT 1 for optimizer and means >no LIMIT for executor. >Comments ? > It seems there's two possibilities: (a) You know you will only use a limited number of rows, but you are not sure exactly how

[HACKERS] Re: [SQL] renaming columns... danger?

2000-10-27 Thread Grant Finnemore
Just tested this on latest devel. version, and there does seem to be a problem. []$ psql test Welcome to psql, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate

[HACKERS] Select syntax (broken in current CVS tree)

2000-10-27 Thread Kevin O'Gorman
I've been poking into the syntax in gram.y, and finding that the provision of parentheses for SELECT statements is pretty broken. I have previously posted examples of odd things. On closer examination, it appears to need an overhaul. There are two problems with this: (1) I'm new here, I don't k

Re: [HACKERS] Re: [GENERAL] A rare error

2000-10-27 Thread Ian Lance Taylor
Date: Thu, 26 Oct 2000 20:49:22 -0400 From: Tom Lane <[EMAIL PROTECTED]> Right. Also, I believe it's possible that such a grammar will behave differently depending on which yacc you process it with, which would be bad. (We have not yet taken the step of insisting that pgsql's gra

[HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Lamar Owen
[Taken off GENERAL, added HACKERS to cc:] Bruce Momjian wrote: > > He's meaning the libpq version for dynamic link loading. Is the > > libpq.so lib changing versions (like the change from 6.5.x to 7.0.x > > changed from libpq.so.2.0 to libpq.so.2.1, which broke binary RPM > > compatibility for o

[HACKERS] PostgreSQL article in Linux Journal Nov 2000

2000-10-27 Thread Lamar Owen
There is an _excellent_ PostgreSQL article in the current (November 2000) issue of Linux Journal. It is fair, even-handed, and was even written by a MySQL user. Almost a convert, I might add. (He even liked the RPM's :-)) It's not linked on their online site (www.linuxjournal.com) as of yet. O

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001026 18:46]: > After reviewing a number of past threads about the INET/CIDR mess, > I have concluded that we should adopt the following behavior: > > 1. A data value like '10.1.2.3/16' is a legal INET value (it implies > the host 10.1.2.3 in the network 10.1/16)

[HACKERS] Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)

2000-10-27 Thread Bruce Momjian
[ Blind CC to general added for comment below.] > [Taken off GENERAL, added HACKERS to cc:] > > Bruce Momjian wrote: > > > He's meaning the libpq version for dynamic link loading. Is the > > > libpq.so lib changing versions (like the change from 6.5.x to 7.0.x > > > changed from libpq.so.2.0 t

Re: [HACKERS] Summary: what to do about INET/CIDR

2000-10-27 Thread The Hermit Hacker
makes sense to me On Thu, 26 Oct 2000, Tom Lane wrote: > After reviewing a number of past threads about the INET/CIDR mess, > I have concluded that we should adopt the following behavior: > > 1. A data value like '10.1.2.3/16' is a legal INET value (it implies > the host 10.1.2.3 in the netwo

Re: [HACKERS] more multibyte/After TGL...

2000-10-27 Thread Tatsuo Ishii
> Larry Rosenman <[EMAIL PROTECTED]> writes: > > Saw Tom's commits, now it breaks here: > > cc -c -I/usr/local/include -I../../../src/include -DFRONTEND -I. >-DSYSCONFDIR='"/home/ler/pg-test/etc/postgresql"' -O -K inline -K PIC -o fe-connect.o >fe-connect.c > > UX:acomp: ERROR: "../../../src/inc