Re: BUG #16474: Foreign key issue

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #16474: Foreign key issue
Дата
Msg-id 387001.1591031124@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #16474: Foreign key issue  (PG Bug reporting form <noreply@postgresql.org>)
Ответы RE: BUG #16474: Foreign key issue  (<d.a.ignatyev@yandex.ru>)
Список pgsql-bugs
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



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #16472: Bug in to_timestamp ?
Следующее
От:
Дата:
Сообщение: RE: BUG #16474: Foreign key issue