[GENERAL] troublesome inputs

2001-02-17 Thread Michelle Murrain
Hi Folks, I've got a question. Users that use the web-based databases that I've recently written (cgi-perl and pgsql) sometimes come up with errors when they input information. I have realized that I need to write some very rigorous error-checking routines in order to make sure that whatever t

[GENERAL] dump of dictionary

2001-02-17 Thread Feite Brekeveld
Hi, Is there a way to get a dictionary back in the (or almost the) same way the database is created ? When defining: create table xxx ( id varchar(10) not null, blabla varchar(100) ); create table refxx ( id varchar(10) not null, other values ... primary key(id), foreign key(

Re: [GENERAL] Case insensitive selects?

2001-02-17 Thread David Wheeler
On Sun, 18 Feb 2001, Martijn van Oosterhout wrote: > Tom Lane wrote: > > [snip] > > > > Then why are you bothering to maintain a case-sensitive index? > > > > There's no free lunch available here; if you think there is, then you > > are misunderstanding what an index is. Either the index is i

Re: [GENERAL] Function reference

2001-02-17 Thread Peter Eisentraut
Bruce Richardson writes: > Is there a function reference for Postgresql anywhere? I can't find one > in the standard documentation. http://www.postgresql.org/users-lounge/docs/7.0/postgres/functions.htm -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/

[GENERAL] Re: DBD::Pg problem?

2001-02-17 Thread Mitch Vincent
In pre 7.0 versions there was an 8k query size limit and in all pre 7.1 versions a limit on the size of a field (BLCKSZ from 8k (default) to 32k)... I'd say it's either in there to prevent one or the other. Of course 8140 isn't quite 8k but *shrug*.. -Mitch - Original Message - From:

[GENERAL] DBD::Pg problem?

2001-02-17 Thread John Madden
The DBD::Pg perl module for some reason has a limit of 8140 bytes when inserting, and I don't see why (yeah, I'll be contacting the authors there too), but I thought I'd ask here... I'm writing a Postgres-backed mail client, and storing emails in the database is obviously a little difficult wh

[GENERAL] Default values?

2001-02-17 Thread Bruce Richardson
If I wanted to create a table in such a way that the default value of one column is the value of another column (or the oid value), is there a way to do that in the CREATE TABLE statement (with the DEFAULT keyword, I'd imagine)? Or would I need to create a trigger? -- Bruce

[GENERAL] Function reference

2001-02-17 Thread Bruce Richardson
Is there a function reference for Postgresql anywhere? I can't find one in the standard documentation. -- Bruce

Re: [GENERAL] how to return more than 1 arg with a function ?

2001-02-17 Thread Tom Lane
Richard Huxton <[EMAIL PROTECTED]> writes: > You can also return a tuple like: > create function whole_row() returns foo as ... > But - that can only be used to feed into another function, not in a > "raw" select statement. You can make a function returning tuple (or setof tuple), but there are a

[GENERAL]

2001-02-17 Thread Eric Nicolas
set nomail

[GENERAL] terminal psql: wrong console keystrokes

2001-02-17 Thread Nico
Through Konsole, the Up, Down, Left, Right keys work properly, but through psql the keystrokes seem to be wrong: instead of up (for scrolling in the internel buffer) it appears ^[[A Down ^[[B Right ^[[C Left ^[[D Back_del (ok) Forward_del ^[[3~ It happened when I upgraded Mandrake from 7

Re: [GENERAL] Annotatable on-line documentation

2001-02-17 Thread Peter Eisentraut
Martijn van Oosterhout writes: > Well, one thing would be is that it would make it easier for other > people to submit changes to a particular page on the docs. You can just > go there and submit a change. Sending a patch much harder. The policy for documentation submissions has always been "Giv

Re: [GENERAL] Are partial indicies supported?

2001-02-17 Thread Martijn van Oosterhout
Tom Lane wrote: [snip] That's a very good explanation, thanks. Is it possible to get that explanation into the docs at that page I mentioned above? > I'd like to see the feature brought back, myself, but I dunno when it > will get to the top of someone's to-do queue. I'd like that too, but the

Re: [GENERAL] Annotatable on-line documentation

2001-02-17 Thread Martijn van Oosterhout
Peter Eisentraut wrote: > > Richard writes: > > > Would this lighten the work load on the folk that are > > currently maintaining the docs? Would it lighten the > > work load for the core developers? Would it stimulate > > the development of richer documetation? Would it draw > > some of the

[GENERAL] Last day for O'Reilly proposals

2001-02-17 Thread Bruce Momjian
Today is the last day for O'Reilly proposals to be submitted: http://candle.pha.pa.us/oreilly/ I will make decisions on Monday and inform submitters. Once the list is finalized and accepted by O'Reilly, I will post the schedule. -- Bruce Momjian| http://cand

Re: [GENERAL] Case insensitive selects?

2001-02-17 Thread Martijn van Oosterhout
Tom Lane wrote: [snip] > > Hmmm...I'd hate to have two indexes on every field I query like this, one > > case-senstive, one case-insensitve (like the one you create here). Is > > there a configuration option or something that will tell pgsql to do > > case-insensitive comparisons (kinda like MS

Re: [GENERAL] how to return more than 1 arg with a function ?

2001-02-17 Thread Richard Huxton
Feite Brekeveld wrote: > > I want to return mre than 1 arg > > create function func(varchar) > --> returns var1, var2 > as ' > ... > ' > language 'sql'; > > How to deal with the return : The manual says to use SETOF can't figure > out how that works no examples are given. Not quite right.

Re: [GENERAL] Re: PostgreSQL vs Oracle vs DB2 vs MySQL - Which should I use?

2001-02-17 Thread Paul M Foster
On Fri, Feb 16, 2001 at 09:36:23AM -0500, Bruce Momjian wrote: > > Funny you should mention PHP. I talked to Rasmus about the email volume > when I first met him in the fall. He said the volume of email is so > great that just reading the subject lines takes a long time. > > We aren't there