RE: [GENERAL] crypt compile error

1998-06-12 Thread Jackson, DeJuan
Did you link in crypt? Try adding -lcrypt to the compile line. -DEJ > -Original Message- > From: Matthew [SMTP:[EMAIL PROTECTED]] > Sent: Friday, June 12, 1998 10:50 AM > To: [EMAIL PROTECTED] > Subject: [GENERAL] crypt compile error > > Hello, I am new to the wor

RE: [GENERAL] cost difference for 2 similar queries

1998-06-15 Thread Jackson, DeJuan
> Hi, > > I have 2 queries, which are quite similar: > > a) select distinct p1.domain from dom_prot p1, identical p2, > classification p3 >where p2.reference = p1.protein >and p2.protein ~ 'EPA3_HUMAN' >and p3.domain = p1.domain; > > b) select distinct p1.domain from dom_prot p1, id

RE: [GENERAL] getting the currval of a sequence

1998-08-17 Thread Jackson, DeJuan
> Jackson, DeJuan wrote: > > > > I think you should just go with what Vadim suggested and use: > > select currval('my_sequence'); > > This will be the same within a

RE: [GENERAL] Re:Foreign Keys

1998-09-21 Thread Jackson, DeJuan
> Hi, > I've managed to hack the code for check_primary_key. It now allows for > a > option > [automatic|dependent]. It'll automatically insert into the parent > table > if the primary key doesn't exists in the parent table and if the > option > is "automatic". It works the same as before if the o

RE: [GENERAL] slow queries

1998-09-25 Thread Jackson, DeJuan
> seems that by creating a view ( with the query i mentioned before ), > my > queries were sped up by roughly 10 seconds... odd odd odd. > Not really so odd when you think of everything the backend has to do to process a query. Parsing, planning, and optimizing (not necessarily in that order) ca

RE: [GENERAL] status on IPv6 implementation...

1998-10-06 Thread Jackson, DeJuan
> Hi all, > > I was just wondering if the IPv6 datatype has allready been > implemented on the current version of postgres. It should be in the CVS version, if you want to test it. -DEJ > Thanks, > Lorenzo Huerta > > > > _ > D

RE: [GENERAL] SELECT Date

1998-10-12 Thread Jackson, DeJuan
nction date(timestamp) does not exist > --- > > I have this column identified as type date and not timestamp. try: SELECT fagentname FROM feedback WHERE '@ 7 days'::timespan >= ftdate::datetime - now()::datetime; > Any suggestions? > > > >

RE: [GENERAL] How to find names of tables in a database?

1998-10-14 Thread Jackson, DeJuan
> Hi -- I've been dabbling in PostgreSQL on and off for a few months > now. At > this point I can get it to do a number of neat things, but I've run > into > one that is a stumper. > > I'm looking for a way that my Perl program can look up the names of > the > tables in a database. Is there a w

RE: [GENERAL] questions

1998-10-21 Thread Jackson, DeJuan
> 2 questions. > > 1)Hi, I have this 2 tables: > esame=> select * from libro_autore\g > id_libro|id_autore > +- > s1 |5 > n3 |1 > n2 |2 > n1 |1 > n1 |4 > > and > esame=> select * from autore\g > cognome|nome |

RE: [GENERAL] How can I obtain tables' structure?

1998-12-04 Thread Jackson, DeJuan
> Paul Mookhachov <[EMAIL PROTECTED]> writes: > > > Hi! > > Hi ! > > > How can I obtain information about tables' structure and list of > tables > > using psql.lib or Pg.pm (perl package)? > > I think you got no wayt to do it directly, but with here's a > trick : > all you ha

RE: [GENERAL] question 2

1998-12-04 Thread Jackson, DeJuan
The easiest way is to give it another name select presto.*, libro.tipo, libro.id_libro as id_libro2 from ... and just grab id_libro2 for the second id_libro. You can also select it by column number in most interfaces. -DEJ > -Original Message- > From: ZioBudda [SMTP:[EMAIL PROTEC

RE: [GENERAL] question 3

1998-12-04 Thread Jackson, DeJuan
I really have no idea what you are truly asking for here, but here's a crack at what I think you want. select count(p.*) from prestito p, libro l where p.id_libro = l.id_libro group by p.id_utente, l.tipo Try it... -DEJ > -Original Message- > Hi again, > I have this 3 tables:

RE: [GENERAL] question 1

1998-12-04 Thread Jackson, DeJuan
I don't know why you are experiencing a problem here but I think I can speed up that query. Let's try a rewrite. SELECT * FROM libro l WHERE EXISTS( SELECT la.id_libro FROM libro_autore la, autore a WHERE la.id_libro = l.id_libro_key AND la.id_autore = a.id_autore AND

RE: [GENERAL] question 3

1998-12-04 Thread Jackson, DeJuan
> -Original Message- > From: ZioBudda [SMTP:[EMAIL PROTECTED]] > Sent: Friday, December 04, 1998 4:44 PM > To: Jackson, DeJuan > Cc: [EMAIL PROTECTED] > Subject: RE: [GENERAL] question 3 > > On Fri, 4 Dec 1998, Jackson, DeJuan wrote: > > > I

RE: [GENERAL] User Authentication Failed

1998-05-19 Thread Jackson, DeJuan
Make sure the PostgreSQL's postmaster is being run with the -i option. Or take out the port number specification in your script. Hope this helps, DEJ > -Original Message- > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, May 19, 1998 1:43 PM > To: [EMAIL PROTECTED]; [

RE: [GENERAL] Triggers: options besides compiled code?

1998-07-15 Thread Jackson, DeJuan
iggers: options besides compiled code? > > >>>>> "dej" == Jackson, DeJuan <[EMAIL PROTECTED]> writes: > > >> if you insert a new row, isn't the sequence automatically > >> inserted? > >> > dej> It is if you

RE: [GENERAL] postgresql v6.4.2 c funcs and null text pointers...

1999-01-08 Thread Jackson, DeJuan
Very observant of you. The postgres function system doesn't have a way to tell which parameter is null, so the function just returns null. I don't like it and we hope to get it changed for PGv6.5 (at least I do). Is it on the TODO guys? Jan, do you think you'll have the time to get to it by bet

RE: [GENERAL] Benchmarking PGSQL against Microsoft SQL 7.0?

1999-01-08 Thread Jackson, DeJuan
There has been a discussion in the HACKERS list (check the archives on the website [http:\\www.postgresql.org\]) about PostgreSQL vs MS SQL 6.5 for the last 2 days or so. I think these ideas must come in threes, so where is that other person? I can't really give a feature comparison of MS SQL 7

RE: [GENERAL] OID

1999-01-15 Thread Jackson, DeJuan
> I'm designing a database schema and have questions about OID. > > First, I assume that OID are system assigned? [yes] yes - correct assumption > Second, Can I use OID as a primary key? [no] yes(qualified) - incorrect assumption Currently PostgreSQL doesn't really do anything special with prima

RE: [GENERAL] non-case sensitive searches

1999-01-14 Thread Jackson, DeJuan
> On Wed, 13 Jan 1999, Jackson, DeJuan wrote: > > > And remember unless you use full text indexing (which is > expensive) you > > won't have indexing on that search (for either the LIKE or regex). > > -DEJ > > Actually, if you use case sensitive r

RE: [GENERAL] pqReadData() -- backend closed the channel unexpectedly.

1999-02-09 Thread Jackson, DeJuan
1st suggestion - If there is no reason behind have temp tables rewrite your sql to eliminate them (this reduces to just 24 queries): INSERT INTO week (address, origbytes, destbytes, when) SELECT o.origine, sum(o.bytes), sum(d.bytes), '09/02/1999 9:00:01' FROM day o, day d WHERE o.origine=d

RE: [GENERAL] How to improve query performance?

1999-02-19 Thread Jackson, DeJuan
The only suggestion I have is to do the Sort after you get the data back, Perl's pretty good at that. Let me know what the timings are. I went to the site and it looks like it only take ~3-5 seconds to get the data to my browser and format it. -DEJ > -Original Message- > I di

RE: [GENERAL] tinterval and timespan

1998-06-01 Thread Jackson, DeJuan
> I am still having problems with the timespan and tinterval types. > > tinterval is defined as (abstime, abstime) but if set a value like > ('2/2/1998, 2/2/1999') the result returned will be > >["Thu Jan 01 01:04:06 1970 MET" "Thu Apr 25 07:54:08 1974 MET"] > > timespan seems also worthle

RE: [GENERAL] Problem with curses

1998-06-01 Thread Jackson, DeJuan
You may want to do a 'make clean' or just start over from the tar. 'configure' should figure out that you have curses installed now. The LIBS switch you need to link in curses is '-lcurses' but configure should take care of that. Hope this helps, -DEJ > Hello, > > the psql too

[GENERAL] RE: [ANNOUNCE] Revamp'd Web Site...

1998-07-22 Thread Jackson, DeJuan
Fix: http://www.postgresql.org/docs/todo.shtml > I just did a relatively major cleanup of the WWW site, and am > looking for feedback. > > Bsically, I was growing tired of looking at the site, and > constantly reloading the same data over and over again (the 'index' on > the

RE: [GENERAL] getting the currval of a sequence

1998-08-14 Thread Jackson, DeJuan
> > I think you should just go with what Vadim suggested and use: > > select currval('my_sequence'); > > This will be the same within a transaction, even if there is another > > transaction using the same sequence. > > Sorry, I wasn't thinking of it happening in the same transaction. In

RE: [GENERAL] extracting date information?

1998-05-19 Thread Jackson, DeJuan
> > If you use "datetime" type instead of "date" and set datestyle = > 'Postgres' > > your data will be like: Sat Dec 12 00:00:00 1998 CET > > instead of: 1998-12-12 > > I actually stumbled across this after my initial post. > > Now that my dates are being retreived in this format: > Sat Dec 12

RE: [GENERAL] How to rename a database?

1998-07-10 Thread Jackson, DeJuan
try: pg_dump > tmp.sql then edit tmp.sql to change the old_database name to new_database name. then: cat tmp.sql | psql template1 -DEJ > -Original Message- > From: James Olin Oden [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, July 09, 1998 11:45 AM > To: Aleksey Dashevsky > Cc:

RE: [GENERAL] Triggers: options besides compiled code?

1998-07-10 Thread Jackson, DeJuan
> > I started to look at the triggers documentation and was immediately > > dismayed to discover that I would have compile code to create a > > trigger. I have been using the old "rules" mechanism to > automatically > > put a sequence number into a tuple when inserting new rows. Are my > > choic

RE: [GENERAL] Unix crypt() for PostgreSQL

1999-03-31 Thread Jackson, DeJuan
It's depends upon your needs, but if you're on a Unix system why not just access the system crypt function. You could create a PostgreSQL C function to easily access it. Just look in contrib for an example of the code. If you're on a Windows system I'd say give up now unless you want to implemen

RE: [GENERAL] Optimal indicies

1999-04-20 Thread Jackson, DeJuan
> Hi! > > On Fri, 16 Apr 1999, Jackson, DeJuan wrote: > > try: > > EXPLAIN SELECT pos_id, rating > > FROM pos_rating pr > > WHERE date_i = current_date AND city_id = 2 AND > > EXISTS (SELECT DISTINCT pos_id FROM positions p WHERE subsec_id = 1 AND

RE: [GENERAL] Speed

1999-04-27 Thread Jackson, DeJuan
Use Indexes... -DEJ > -Original Message- > From: Justin Long [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, April 27, 1999 11:31 AM > To: [EMAIL PROTECTED] > Subject: [GENERAL] Speed > > I find that it is actually faster to do a SELECT from a single record set, > then fetch eac

RE: [GENERAL] INDEXes and UNIQUES and PRIMARY KEYS

1999-04-27 Thread Jackson, DeJuan
> If I have a UNIQUE or PRIMARY KEY clause on my class, does that create a > btree or hash index? btree > I guess if I have a UNIQUE constraint or PRIMARY KEY at class creation, > I don't have to create an index explicitely via CREATE INDEX ? correct -DEJ

RE: [GENERAL] UNIQUE performance?

1999-04-27 Thread Jackson, DeJuan
> If I want to have an index on oid, which will obviously be unique > anyway, is it more efficient to have or not to have the UNIQUE option on > CREATE INDEX ? Good question my thought would be not to have the Unique; then the Indexing code doesn't have to check for duplicates when inserting new v

RE: [GENERAL] For data based web site, which RDBMS is better & why ?

1999-05-19 Thread Jackson, DeJuan
The problem here is to find impartial comparisons. The question between MySQL and PostgreSQL usually come down to Do I care most about speed? - usually true for purely Web Apps. or Do I need transaction and the other features PostgreSQL offers? - which tends to only be true if y

RE: [GENERAL] urgent: problems with query_limit

1999-06-30 Thread Jackson, DeJuan
Try: select * from table LIMIT 100; > Hi > > We upgraded our system from 6.4 to the new 6.5 version. The set > query_limit function is not working > anymore in 6.5. > > db => set query_limit to '100'; > SET VARIABLE > db => select * from table; > > statement is returning all records from the t

RE: [GENERAL] Set operator.

1999-07-13 Thread Jackson, DeJuan
Try EXCEPT (only in v6.5). -DEJ > -Original Message- > From: Nikolay Mijaylov [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, July 13, 1999 6:41 AM > To: [EMAIL PROTECTED] > Subject: Re: [GENERAL] Set operator. > > I know it is not the same but try this: > > > select table1.va

RE: [GENERAL] Backend cache problem revisited

1999-08-10 Thread Jackson, DeJuan
You need to increase your max backends. The default for 6.4.2 was 64. I believe it is a configure option (or it's in config.h). You might also need to increase your semaphore limits (that's a kernel option). > -Original Message- > From: Yin-So Chen [SMTP:[EMAIL PROTECTED]] > Sent: Sunda