Re: [GENERAL] Typecasting datetype as date. How do I cope with NULLs?

1998-11-27 Thread Stuart Rison
23 1998 MSK becomes 26-11-1998) so the date_trunc masking is not quite what I'm looking for. Would it be possible to do a select datetime and then output only the dateday, datemonth and dateyear using an RE?? All the same, thanks for your suggestion Anatoly, UNION's the winner so far ;

Re: [GENERAL] more nodeError problems and general view failures!

1998-07-09 Thread Stuart Rison
s the cause. The code could not handle an AS with multiple >words, because of the way it was stored in the rewrite system. This >patch should fix the problem. > >Does it fix your second problem too? > >? src/Makefile.custom >...patch follows... +-

[GENERAL] Length of field names.

1998-07-13 Thread Stuart Rison
g tables as Herouth suggested). +-+------+ | Stuart Rison| Ludwig Institute for Cancer Research | +-+ University College London| | Tel. (0171) 878 4041| 91 Riding House Street | | Fax. (0171) 878 4040| Lo

Re: [GENERAL] Length of field names.

1998-07-13 Thread Stuart Rison
Stuart. PS. That leaves me with giving tables and fields smaller names... I suppose names of over 31 are pretty silly anyway... no wonder I keep exceeding the query buffer!! +-+--+ | Stuart Rison| Ludwig Institute for Cancer Research | |

Re: [GENERAL] Patch 6.4.1 to 6.4.2

1999-01-06 Thread Stuart Rison
-in fact- just have pg 6.4 installed or is PG_VERSION the same for 6.4 and 6.4.1? +-+----------+ | Stuart Rison| Ludwig Institute for Cancer Research | +-+ 91 Riding House Street | | Tel. (0171

Re: [GENERAL] Installer PostGres..

1999-02-11 Thread Stuart Rison
vu d'article en francais >:-) > Moi non plus mais maintenant ca fait trois (et presque une habitude) ;) amicalement, S. +-----+--+ | Stuart Rison| Ludwig Institute for Cancer Research | +-+ 91 Ri

Re: [GENERAL] Problems compiling

1999-02-12 Thread Stuart Rison
C++ compiler or just that if you don't have a C++ compiler, you need to change your config flags appropriately and lose some of the functionality? regards, Stuart. +-----+--+ | Stuart Rison| Ludwig Institute for Cancer Rese

[GENERAL] Are postgreSQL views UPDATEable?

1999-03-26 Thread Stuart Rison
views. I'm running PG 6.4.0. regards, Stuart. +-----+--+ | Stuart Rison| Ludwig Institute for Cancer Research | +-+ 91 Riding House Street | | Tel. (0171) 878 4041| London, W1P 8BT, UNITED KINGDOM. | | Fax. (0171) 878 4040| [EMAIL PROTECTED] | +-+--+

Re: [GENERAL] entity relationship diagram free software

1999-04-22 Thread Stuart Rison
tware tools that people use to create entity >relationship diagrams >and to document databases? > >Thanks, > >Sarah Officer >[EMAIL PROTECTED] +-+--+ | Stuart Rison| Ludwig Institute for Cancer Research | +

[GENERAL] Problems with '||' concatenation operator.

1999-05-18 Thread Stuart Rison
suggestions on how to get the concatenation to work? Also, I'm hoping to eventually concatenate an int4 field to the other two so, having solved the above problem, how would I tackle that one? Regards, S. +-+--+ | Stuart Rison| Ludwig Institute for Cancer Research | +-+ 91 Riding House Street | | Tel. (0171) 878 4041| London, W1P 8BT, UNITED KINGDOM. | | Fax. (0171) 878 4040| [EMAIL PROTECTED] | +-+--+

Re: [GENERAL] Problems with '||' concatenation operator.

1999-05-18 Thread Stuart Rison
| arm::varchar as locus from experiment; but the solution is clearly in some form of casting! I'm using PG 6.4, perhaps it's a version thing? regards, S. +-+--+ | Stuart Rison| Ludwig Institute for Cancer Re

[GENERAL] Installing pl/pgsql under Irix 5.3

1999-05-19 Thread Stuart Rison
o defined in archive /usr/lib/ar: Warning:ignoring second definition of fmgr_pl_finfo defined in archive Result I thought, until I tried gmake install: merlin::root 1# gmake install plpgsql not installed due to lack of shared library support. What do I try next? (Irix 5.3, psSQL 6.4)

Re: [GENERAL] PL/pgSQL - mailng list

1999-05-24 Thread Stuart Rison
t;> sturctures, variable assignment, and the like. >> >> >From simple to very complex, send anything that might be helpful. >> >> thanks a ton >> >> mike haberman >> [EMAIL PROTECTED] >> >> > >> > > >-

[GENERAL] Geometric, getting x and y co-ordinates from point datatype

1999-06-04 Thread Stuart Rison
so, can someone give me the point_out source to work with? (I don't program in C -hell, I don't really program in anything, I dabble- but I'm quite happy to experiment) Regards, Stuart. +-+----------+ | Stuart Rison

Re: [GENERAL] Geometric, getting x and y co-ordinates GOING MAD!!!!!

1999-06-04 Thread Stuart Rison
ows) HELP! WHAT'S GOING ON!!! Why can't I get to pt->y? Why does function pants behave just like get_x (and get_y)? Stuart. +-+--+ | Stuart Rison| Ludwig Institute for Cancer Research | +---

Re: [GENERAL] JOIN exclusion problem

1999-07-01 Thread Stuart Rison
w the rows are built up? Pardon for novice >nature of this question... > >Thanks in advance, > >Anja +-+--+ | Stuart Rison| Ludwig Institute for Cancer Research | +-+ 91 Riding House Street

[GENERAL] limits of float8

1999-07-01 Thread Stuart Rison
scores are all entered in scientific notation. >From experimentation, the smallest value I seem to be able to enter is around 2.225e-308. Is this 'correct'? This is PG 6.4 compiled with cc under Irix 5.3. Cheers, Stuart. +-+------

[GENERAL] Stuck in a vacuum.

1999-07-05 Thread Stuart Rison
rom extensive gnashing! S. +-+------+ | Stuart Rison| Ludwig Institute for Cancer Research | +-+ 91 Riding House Street | | Tel. (0171) 878 4041| London, W1P 8BT, UNITED KINGDOM. | | Fax. (0

[GENERAL] Set operator.

1999-07-13 Thread Stuart Rison
please specify what version of PG might have this functionality... also, can anybody offer hints as to how to implement such functionality if necessary? Regards, Stuart. +-+--+ | Stuart Rison| Ludwig Institute for Cancer

Re: [GENERAL] ElephantWear Now Available...

1999-08-04 Thread Stuart Rison
At 6:53 pm +0300 4/8/99, Herouth Maoz wrote: >At 17:32 +0300 on 04/08/1999, Clark C. Evans wrote: > > >> I don't get image #2 "Leave's em big" could >> someone explain this one? Also, having the version >> number on the T-Shirt kinda dates it... > >I think you're right. And I thought that "l

Re: [GENERAL] ALTER TABLE

1999-08-09 Thread Stuart Rison
Hi, To the best of my knowledge, still no way of droping a field directly by using ALTER. Usual trick is to do something like: SELECT INTO temp_table FROM ; DROP TABLE ; ALTER TABLE temp_table RENAME TO ; But bear in my that: - this will not preserve oid's... - I think things like RULES

Re: [GENERAL] CVS Import/Export

1999-08-18 Thread Stuart Rison
>> There is a COPY command that you can use...there is a man page for it, >> sorry, don't use it myself, so dont know the syntax. Then some bit about usually using Perl because of trouble getting COPY to perform exactly right and then having to pay the price with slow inserts instead of fast COPY

Re: [GENERAL] changing between 6.4.1 and 6.5

1999-08-25 Thread Stuart Rison
Hi, >after an installation of PostgrSQL v6.5 on a new machine >i have problems with a view which is running without problems >under 6.4.x. >But the view isn't the problem. The same statement on the real table >realized the same error: >ERROR: illegal use of aggregate or non-group column in target

RE: [GENERAL] changing between 6.4.1 and 6.5

1999-08-26 Thread Stuart Rison
At 8:38 am +0200 26/8/99, Jens Felber wrote: >At 18:02 25.08.99 +0200, dpeder wrote: >>have You set any triggers, rules, listens or defaults for tablex? >> > > >Nothing is set. I create a new table for tests. > > --> create table test1 (x1 int2, x2 int2, tx char); > >then I've inserted some values

Re: [GENERAL] Prog to generate table structure ...

1999-08-31 Thread Stuart Rison
don't know about any facilities to generate C files describing table structure. As to obtaining that information, I would say it is all in system catalog tables (i.e. the tables that start with pg_ and which can be listed with \dS in psql). These are the tables that are queried when you use such

Re: [GENERAL] How to display user-defined functions?

1999-08-31 Thread Stuart Rison
At 9:41 am -0700 31/8/99, Mark Dalphin wrote: >Hi, > >Is there a way to display user-defined functions? For example, if I define a >function using PL/pgsql, what tables do I query and in what way to learn that >the function exisits and further, what its defintion is? I can find functions >that re

Re: [GENERAL] Getting multiple field unique index to distinguish NULLs.

1999-09-14 Thread Stuart Rison
On Fri, 10 Sep 1999, Tom Lane wrote: > Stuart Rison <[EMAIL PROTECTED]> writes: > > Now this would work except that there's a problem with pl/pgSQL such that > > when you pass several values to a plpgsql function and one of them is > > NULL, then all values pa

RE: [GENERAL] Getting multiple field unique index to distinguish NULLs.

1999-09-14 Thread Stuart Rison
ms with > dupplication errors! ) Precicely, this seems to be the general concensus, I need to have some non-NULL empty value token. Thanks to everybody who e-mailed help/suggestions. regards, S. > > >From: "Jackson, DeJuan" <[EMAIL PROTECTED]> > >To

Re: [GENERAL] Change table structure.

1999-09-23 Thread Stuart Rison
AFAIK, you can add and and rename columns no problem: functions=> \h alter table Command: alter table Description: add/rename attributes, rename tables Syntax: ALTER TABLE class_name [*] ADD COLUMN attr type ALTER TABLE class_name [*] RENAME [COLUMN] attr1 TO attr2 ALTER T

Re: [GENERAL] That migration problem

1999-09-23 Thread Stuart Rison
Hello, Since I am going to do the very same upgrade in the near future, I'd be very grateful if you could send a brief posting on how you resolved that problem (and indeed any other you encountered during the upgrade). Regards, S. On Thu, 23 Sep 1999, Sebestyen Zoltan wrote: > Since then, I s

Re: [GENERAL] Untrusted functions on index creation.

1999-11-01 Thread Stuart Rison
looks like to index doesn't like to use functions which aren't internal. In your case though, this is not a problem. Rather than defining function 'myupper' use the internal upper directly in the create index statement: DROP INDEX upper_name; CREATE INDEX upper_name ON prosb (upper(defendant_nam

Re: [GENERAL] get the previous assigned sequence value

1999-12-09 Thread Stuart Rison
On Thu, 9 Dec 1999, Dev Elop wrote: > > > > > > After an INSERT, I want to retrieve the value of the sequence I use for > > > unique_ids > > > > ... > > > > Alternatively, use the currval(mytable_id_seq) function within the same > > session immediately after the insert. > > > With this second met