From: Tom Lane <tgl@sss.pgh.pa.us>
To: d.a.ignatyev@yandex.ru
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16474: Foreign key issue
Date: Mon, 01 Jun 2020 13:05:24 -0400
Message-ID: <387001.1591031124@sss.pgh.pa.us> (raw)
In-Reply-To: <16474-03a567470736cd26@postgresql.org>
References: <16474-03a567470736cd26@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> A few lines of SQL to clarify the situation:
This isn't clarifying much. If I guess at your table definitions,
it works for me:
regression=# create table r_source (source text primary key);
CREATE TABLE
regression=# create table ppdm_rule_remark(source text references r_source);
CREATE TABLE
regression=# insert into r_source values ('PPDM39RNEX');
INSERT 0 1
regression=# select source from r_source where source = 'PPDM39RNEX' \gset
regression=# \echo :source
PPDM39RNEX
regression=# INSERT INTO ppdm_rule_remark("source") values (:'source');
INSERT 0 1
Please provide a *self contained* example if you want us to
investigate more closely.
regards, tom lane
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, d.a.ignatyev@yandex.ru, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16474: Foreign key issue
In-Reply-To: <387001.1591031124@sss.pgh.pa.us>
* 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