pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
large going giving errors.
4+ messages / 3 participants
[nested] [flat]

* large going giving errors.
@ 2001-06-13 20:38 jeff@tht.net
  2001-06-13 21:00 ` RE: large going giving errors. Robby Slaughter <webmaster@robbyslaughter.com>
  2001-06-13 21:38 ` Re: large going giving errors. Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 4+ messages in thread

From: jeff@tht.net @ 2001-06-13 20:38 UTC (permalink / raw)
  To: pgsql-sql

Hi

I have a largeish join that is giving me an error..

here's the query

SELECT o.name,o,contactname,o.contactphone,o.fax,o.emailaddy,o.freetelephone,o.address1,o.address2,uw.id,m.manufacturer,i.type,uw.model,uw.color,uw.size,uw.price
  FROM user_wantads AS uw,organisations AS o,users AS u ,itemtypes AS i,itemmanufacturers AS m,provinces AS p,cities AS ct,countries AS cy
 WHERE uw.owner = u.loginid
   AND u.belongsto = o.organisationid
   AND m.id=uw.manufacturer
   AND i.id=uw.itemtype
   AND o.provinceid=p.provinceid
   AND o.cityid=ct.cityid AND o.countryid=cy.countryid
   AND uw.id=9

and the error

ERROR:  copyObject: don't know how to copy 704

can anyone shed a little light please ?

jeff.




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* RE: large going giving errors.
  2001-06-13 20:38 large going giving errors. jeff@tht.net
@ 2001-06-13 21:00 ` Robby Slaughter <webmaster@robbyslaughter.com>
  2001-06-13 21:23   ` RE: large going giving errors. jeff@tht.net
  1 sibling, 1 reply; 4+ messages in thread

From: Robby Slaughter @ 2001-06-13 21:00 UTC (permalink / raw)
  To: jeff@tht.net; pgsql-sql

What happens when you don't join quite so much? That is, take off the AND
blah blocks,
one by one?
-Robby

-----Original Message-----
From: pgsql-sql-owner@postgresql.org
[mailto:pgsql-sql-owner@postgresql.org]On Behalf Of jeff@tht.net
Sent: Wednesday, June 13, 2001 3:38 PM
To: pgsql-sql@postgresql.org
Subject: [SQL] large going giving errors.


Hi

I have a largeish join that is giving me an error..

here's the query

SELECT
o.name,o,contactname,o.contactphone,o.fax,o.emailaddy,o.freetelephone,o.addr
ess1,o.address2,uw.id,m.manufacturer,i.type,uw.model,uw.color,uw.size,uw.pri
ce
  FROM user_wantads AS uw,organisations AS o,users AS u ,itemtypes AS
i,itemmanufacturers AS m,provinces AS p,cities AS ct,countries AS cy
 WHERE uw.owner = u.loginid
   AND u.belongsto = o.organisationid
   AND m.id=uw.manufacturer
   AND i.id=uw.itemtype
   AND o.provinceid=p.provinceid
   AND o.cityid=ct.cityid AND o.countryid=cy.countryid
   AND uw.id=9

and the error

ERROR:  copyObject: don't know how to copy 704

can anyone shed a little light please ?

jeff.


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* RE: large going giving errors.
  2001-06-13 20:38 large going giving errors. jeff@tht.net
  2001-06-13 21:00 ` RE: large going giving errors. Robby Slaughter <webmaster@robbyslaughter.com>
@ 2001-06-13 21:23   ` jeff@tht.net
  0 siblings, 0 replies; 4+ messages in thread

From: jeff@tht.net @ 2001-06-13 21:23 UTC (permalink / raw)
  To: Robby Slaughter <webmaster@robbyslaughter.com>; +Cc: pgsql-sql

i actually found the problem,

SELECT o.name,o,contactname

should be

SELECT o.name,o.contactname

jeff



On Wed, 13 Jun 2001, Robby Slaughter wrote:

> What happens when you don't join quite so much? That is, take off the AND
> blah blocks,
> one by one?
> -Robby
>
> -----Original Message-----
> From: pgsql-sql-owner@postgresql.org
> [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of jeff@tht.net
> Sent: Wednesday, June 13, 2001 3:38 PM
> To: pgsql-sql@postgresql.org
> Subject: [SQL] large going giving errors.
>
>
> Hi
>
> I have a largeish join that is giving me an error..
>
> here's the query
>
> SELECT
> o.name,o,contactname,o.contactphone,o.fax,o.emailaddy,o.freetelephone,o.addr
> ess1,o.address2,uw.id,m.manufacturer,i.type,uw.model,uw.color,uw.size,uw.pri
> ce
>   FROM user_wantads AS uw,organisations AS o,users AS u ,itemtypes AS
> i,itemmanufacturers AS m,provinces AS p,cities AS ct,countries AS cy
>  WHERE uw.owner = u.loginid
>    AND u.belongsto = o.organisationid
>    AND m.id=uw.manufacturer
>    AND i.id=uw.itemtype
>    AND o.provinceid=p.provinceid
>    AND o.cityid=ct.cityid AND o.countryid=cy.countryid
>    AND uw.id=9
>
> and the error
>
> ERROR:  copyObject: don't know how to copy 704
>
> can anyone shed a little light please ?
>
> jeff.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
>




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: large going giving errors.
  2001-06-13 20:38 large going giving errors. jeff@tht.net
@ 2001-06-13 21:38 ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 4+ messages in thread

From: Tom Lane @ 2001-06-13 21:38 UTC (permalink / raw)
  To: jeff@tht.net; +Cc: pgsql-sql

<jeff@tht.net> writes:
> SELECT o.name,o,contactname,o.contactphone,o.fax,o.emailaddy,o.freetelephone,o.address1,o.address2,uw.id,m.manufacturer,i.type,uw.model,uw.color,uw.size,uw.price
>   FROM user_wantads AS uw,organisations AS o,users AS u ,itemtypes AS i,itemmanufacturers AS m,provinces AS p,cities AS ct,countries AS cy
>  WHERE uw.owner = u.loginid
>    AND u.belongsto = o.organisationid
>    AND m.id=uw.manufacturer
>    AND i.id=uw.itemtype
>    AND o.provinceid=p.provinceid
>    AND o.cityid=ct.cityid AND o.countryid=cy.countryid
>    AND uw.id=9

> ERROR:  copyObject: don't know how to copy 704

You probably wanted "o.contactname" not "o,contactname".

7.2 will give a more useful error message for this sort of mistake ...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2001-06-13 21:38 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-06-13 20:38 large going giving errors. jeff@tht.net
2001-06-13 21:00 ` Robby Slaughter <webmaster@robbyslaughter.com>
2001-06-13 21:23   ` jeff@tht.net
2001-06-13 21:38 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox