public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Arbol One <[email protected]>
Cc: [email protected] <[email protected]>
Cc: PostGreSQL MailingList <[email protected]>
Subject: Re: JDBC using REFERENCES
Date: Sun, 24 Nov 2024 19:22:13 -0700
Message-ID: <CAKFQuwY7jG3+23k6U1Lrs7SsuHjxd4Oy+F_YVz7V4mwJ3+i=ZA@mail.gmail.com> (raw)
In-Reply-To: <BYAPR12MB280839EFBCE89927FF95E7D4BA2E2@BYAPR12MB2808.namprd12.prod.outlook.com>
References: <BYAPR12MB280839EFBCE89927FF95E7D4BA2E2@BYAPR12MB2808.namprd12.prod.outlook.com>

On Sunday, November 24, 2024, Arbol One <[email protected]> wrote:

>
>
>
>
> *                 sql.append("index SERIAL NOT NULL, ");
> sql.append("id TEXT PRIMARY KEY, ");                 sql.append("CONSTRAIN
> id PRIMARY KEY (id)"); **<== Error*
>
>
>
This is quite confusing, having the index column be serial but not PK (or
even unique…) while the id column is the PK, which you’ve redundantly
specified.

David J.


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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: JDBC using REFERENCES
  In-Reply-To: <CAKFQuwY7jG3+23k6U1Lrs7SsuHjxd4Oy+F_YVz7V4mwJ3+i=ZA@mail.gmail.com>

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

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