pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Byron Nikolaidis <byronn@insightdist.com>
To: Michael Davis <michael.davis@prevuenet.com>
Cc: 'pgsql-interfaces@postgreSQL.org' <pgsql-interfaces@postgreSQL.org>
Cc: pgsql postgres <pgsql-sql@postgreSQL.org>
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: [INTERFACES] Foreign Keys
Date: Thu, 25 Feb 1999 10:37:57 -0500
Message-ID: <36D56E55.5D42F476@insightdist.com> (raw)
References: <93C04F1F5173D211A27900105AA8FCFC1451F4@lambic.prevuenet.com>



Michael Davis wrote:

> What is the possibility of recording foreign keys (a partial foreign key
> implementation) in the database such that the ODBC interface can correctly
> report them to client applications?  This would require an enhancement to
> Postgres and to the ODBC driver for Postgres.  I have a problem with Access
> 97 not working properly with forms that contain sub forms representing
> parent/child or master/detail tables.  For example: orders and orderlines.
> I think this is caused by the lack of foreign key support.  I am basing this
>

The driver does support SQLForeignKeys.  It does say it supports this function
in SQLFunctions.

However, the current implementation is based on the SPI/trigger stuff from the
pg_trigger table.  If you don't have any trigger info, then SQLForeignKeys will
not report anything.  This is most likely the problem.

Byron




view thread (24+ messages)  latest in thread

Message-ID: <36D56E55.5D42F476@insightdist.com>
Permalink:  ../36D56E55.5D42F476@insightdist.com/
Also on:    postgresql.org/message-id/36D56E55.5D42F476@insightdist.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: byronn@insightdist.com, michael.davis@prevuenet.com, pgsql-sql@postgreSQL.org, pgsql-hackers@postgreSQL.org
  Subject: Re: [INTERFACES] Foreign Keys
  In-Reply-To: <36D56E55.5D42F476@insightdist.com>

* 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