[SQL] Assoclist is still slow and I am not seeing it

2005-02-05 Thread Joel Fradkin








Hi,

I asked about this before and am still fighting for success;
any ideas I tried adding a index on jobtitle.

 

Explain analyze returns

 

QUERY PLAN

"Merge Join  (cost=53053.05..53652.66 rows=4888
width=113) (actual time=9788.066..11042.584 rows=85694 loops=1)"

"  Merge Cond: (""outer"".locationid
= ""inner"".locationid)"

"  ->  Sort  (cost=604.65..605.45 rows=319 width=49)
(actual time=5.367..6.729 rows=402 loops=1)"

"    Sort Key: l.locationid"

"    ->  Index Scan using ix_location on tbllocation
l  (cost=0.00..591.38 rows=319 width=49) (actual time=0.193..3.548 rows=402
loops=1)"

"  Index Cond: ('SAKS'::text = (clientnum)::text)"

"  ->  Sort  (cost=52448.40..52710.82 rows=104970
width=75) (actual time=9782.634..10100.572 rows=85695 loops=1)"

"    Sort Key: a.locationid"

"    ->  Merge Right Join 
(cost=39859.63..41130.10 rows=104970 width=75) (actual time=6811.114..8284.253
rows=99139 loops=1)"

"  Merge Cond: (((""outer"".clientnum)::text
= ""inner"".""?column10?"") AND
(""outer"".id = ""inner"".jobtitleid))"

"  ->  Index Scan using ix_tbljobtitle_id
on tbljobtitle jt  (cost=0.00..226.47 rows=6343 width=37) (actual
time=0.089..33.082 rows=5662 loops=1)"

"    Filter: (1 = presentationid)"

"  ->  Sort  (cost=39859.63..40122.06
rows=104970 width=53) (actual time=6763.992..7160.587 rows=99139 loops=1)"

"    Sort Key: (a.clientnum)::text, a.jobtitleid"

"    ->  Seq Scan on tblassociate a 
(cost=0.00..31105.34 rows=104970 width=53) (actual time=0.478..1831.000
rows=99139 loops=1)"

"  Filter: ((clientnum)::text =
'SAKS'::text)"

"Total runtime: 11319.403 ms"

 

Joel Fradkin



 



Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel.  941-753-7111 ext 305



 



[EMAIL PROTECTED]
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
© 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
 This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information.  Any unauthorized review,
use, disclosure or distribution is prohibited.  If you are not the
intended recipient, please contact the sender by reply email and delete and
destroy all copies of the original message, including attachments.



 




 

 








[SQL] postgres8 install on fedora core 3 (or redhat4 beta AS)

2005-02-05 Thread Joel Fradkin








Any help?

I got the 8 rpms for fedora and it keeps asking for 7.4 rpm’s,

I down load the specific 7.4 stuff and it says already installed?

 

Joel Fradkin



 



Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel.  941-753-7111 ext 305



 



[EMAIL PROTECTED]
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
© 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
 This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information.  Any unauthorized review,
use, disclosure or distribution is prohibited.  If you are not the
intended recipient, please contact the sender by reply email and delete and
destroy all copies of the original message, including attachments.



 




 

 








[SQL] specifying different location for data and wal on fedora core 3 /backup question again

2005-02-05 Thread Joel Fradkin








Being new to Linux I am not 100% sure on a few items.

 

I could find 

% setenv PGDATA2 /home/postgres/data% initlocation $PGDATA2Creating Postgres database system directory /home/postgres/data Creating Postgres database system directory /home/postgres/data/base

 

For defining data in another spot, but was not sure how to
put the environment into the Postgres
superuser's .profile
or .cshrc

 

I have two file systems (on separate raids per a suggestion from a list
member)

They are /pgdata and /wal respectively.

Can anyone point me to a walkthrough how to do this (assuming its
documented somewhere)?

 

I still have had no luck with the backup (I did notice when the
database is created using dbcreate ; logged in as postgres) it had 

CREATE DATABASE wazagua

  WITH OWNER = postgres

   ENCODING = 'SQL_ASCII';

 

The backup seemed to blow up on 

pg_restore: ERROR: 
invalid byte sequence for encoding "UNICODE": 0xe9

 

Do I have to specify ENCODING = 'SQL_ASCII'; some how?

If so can anyone give me the backup and restore syntax.

It gives no errors backing up, just restoring.

 

 

Joel Fradkin