BUG #15623: Inconsistent use of default for updatable view
От
PG Bug reporting form
Тема
BUG #15623: Inconsistent use of default for updatable view
Дата
Msg-id
15623-5d67a46788ec8b7f@postgresql.org
Список
Дерево обсуждения
BUG #15623: Inconsistent use of default for updatable view PG Bug reporting form <noreply@postgresql.org>
Re: BUG #15623: Inconsistent use of default for updatable view Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: BUG #15623: Inconsistent use of default for updatable view Dean Rasheed <dean.a.rasheed@gmail.com>
Re: BUG #15623: Inconsistent use of default for updatable view Amit Langote <amitlangote09@gmail.com>
Re: BUG #15623: Inconsistent use of default for updatable view Dean Rasheed <dean.a.rasheed@gmail.com>
Re: BUG #15623: Inconsistent use of default for updatable view Dean Rasheed <dean.a.rasheed@gmail.com>
Re: BUG #15623: Inconsistent use of default for updatable view Dean Rasheed <dean.a.rasheed@gmail.com>
Re: BUG #15623: Inconsistent use of default for updatable view Dean Rasheed <dean.a.rasheed@gmail.com>
Re: BUG #15623: Inconsistent use of default for updatable view Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: BUG #15623: Inconsistent use of default for updatable view Dean Rasheed <dean.a.rasheed@gmail.com>
Re: BUG #15623: Inconsistent use of default for updatable view Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: BUG #15623: Inconsistent use of default for updatable view Dean Rasheed <dean.a.rasheed@gmail.com>
Re: BUG #15623: Inconsistent use of default for updatable view Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
The following bug has been logged on the website: Bug reference: 15623 Logged by: Roger Curley Email address: rocurley@gmail.com PostgreSQL version: 11.1 Operating system: Ubuntu 11.1 Description: Steps to reproduce (run in psql shell): ``` DROP TABLE IF EXISTS test CASCADE; CREATE TABLE test ( id int PRIMARY KEY, value int DEFAULT 0 ); CREATE VIEW test_view AS (SELECT * FROM test); INSERT INTO test_view VALUES (1, DEFAULT), (2, DEFAULT); INSERT INTO test VALUES (3, DEFAULT), (4, DEFAULT); INSERT INTO test_view VALUES (5, DEFAULT); SELECT * FROM test; ``` Result: ``` id | value ----+------- 1 | 2 | 3 | 0 4 | 0 5 | 0 ``` Expected Result: ``` id | value ----+------- 1 | 0 2 | 0 3 | 0 4 | 0 5 | 0 ``` In particular, it's surprising that inserting 1 row into an updatable view uses the table default, while inserting 2 uses null.
В списке pgsql-bugs по дате отправления
От: Amit Langote
Дата: