pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Ansley <Michael.Ansley@intec-telecom-systems.com>
To: sqllist <pgsql-sql@postgresql.org>
To: 'pgsql-general@postgresql.org' <pgsql-general@postgresql.org>
Subject: Object syntax
Date: Thu, 5 Oct 2000 14:19:40 +0100
Message-ID: <7F124BC48D56D411812500D0B7472514061460@fileserver002.intecsystems.co.uk> (raw)

Given the following table definitions, and data inserts:

dev=# create address (addr varchar(50), postcode varchar(9));
dev=# create client (name varchar(30), addr address);
dev=# insert into client values ('Michael');
dev=# insert into address values ('11 Windsor Close', 'RH16 4QR');
INSERT 18935 1
dev=# update client set addr = 18935::address;

dev=# explain select client.addr.postcode from client; 
NOTICE:  QUERY PLAN: 
Seq Scan on client  (cost=0.00..1.01 rows=1 width=4) 
EXPLAIN 
dev=# select client.addr.postcode from client; 
ERROR:  init_fcache: Cache lookup failed for procedure 18935 

What's happening here?  Bug, or am I doing something wrong?

Cheers... 

view thread (4+ messages)  latest in thread

Message-ID: <7F124BC48D56D411812500D0B7472514061460@fileserver002.intecsystems.co.uk>
Permalink:  ../7F124BC48D56D411812500D0B7472514061460@fileserver002.intecsystems.co.uk/
Also on:    postgresql.org/message-id/7F124BC48D56D411812500D0B7472514061460@fileserver002.intecsystems.co.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: Michael.Ansley@intec-telecom-systems.com, pgsql-general@postgresql.org
  Subject: Re: Object syntax
  In-Reply-To: <7F124BC48D56D411812500D0B7472514061460@fileserver002.intecsystems.co.uk>
  References: <7F124BC48D56D411812500D0B7472514061460@fileserver002.intecsystems.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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