|
|
Sponsor |
Re: No space left on device.: msg#00111db.postgresql.novice
HOLY DUMB! Thanks Tom Chad ----- Original Message ----- From: "Tom Lane" <tgl@xxxxxxxxxxxxx> To: "Chad Thompson" <chad@xxxxxxxxxxxxxxxxxxx> Cc: "pgsql-novice" <pgsql-novice@xxxxxxxxxxxxxx> Sent: Friday, August 16, 2002 12:43 PM Subject: Re: [NOVICE] No space left on device. > "Chad Thompson" <chad@xxxxxxxxxxxxxxxxxxx> writes: > > select l.id, l.full_phone into "8_15_2002_NeverquitPushOneMessaging"=20 > > from list_tz l, call_results cr=20 > > where client_id =3D 8=20 > > and ((cr.result =3D 'Busy') or (cr.result =3D 'Busy-Reorder') or (cr.result= > > =3D 'Busy-Timeout') or (cr.result =3D 'No Signal') or (cr.result =3D 'No C= > > ircuit Signal') or (cr.result =3D 'No Answer') or (cr.result =3D 'No Solici= > > tation'))=20 > > and cr.calldate between '6/4/2002' and '8/14/2002'; > > > call_results is a table with just over 1 million lines, list_tz is a temp t= > > able created in another function w/ anywhere from 10 to 50 K lines. > > Perhaps a join condition would be a good idea ;-). As-is, you're > selecting from the cross product of those tables, which could be up to > 50 billion lines. > > regards, tom lane > ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@xxxxxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: No space left on device., Tom Lane |
|---|---|
| Next by Date: | Re: database not done for :), Mark Nelson |
| Previous by Thread: | Re: No space left on device., Tom Lane |
| Next by Thread: | Re: database not done for :), Mark Nelson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|