Re: Implementing Incremental View Maintenance

2020-02-18 Thread nuko yokohama
MATERIALIZED VIEW. (similar to handling non-immutable functions) Regard. 2020年2月8日(土) 11:15 nuko yokohama : > Hi. > > UNION query problem.(server crash) > > When creating an INCREMENTAL MATERIALIZED VIEW, > the server process crashes if you specify a query with a UNI

Re: Implementing Incremental View Maintenance

2020-02-09 Thread nuko yokohama
Hi. I understod that UNION is unsupported. I also refer to the implementation of "./src/backend/commands/createas.c" check_ivm_restriction_walker () to see if there are any other queries that may be problematic. 2020年2月10日(月) 10:38 Yugo NAGATA : > On Sat, 8 Feb 2020 11:15:45

Re: Implementing Incremental View Maintenance

2020-02-07 Thread nuko yokohama
Hi. UNION query problem.(server crash) When creating an INCREMENTAL MATERIALIZED VIEW, the server process crashes if you specify a query with a UNION. (commit id = 23151be7be8d8f8f9c35c2d0e4e5353aedf2b31e) execute log. ``` [ec2-user@ip-10-0-1-10 ivm]$ psql testdb -e -f union_query_crash.sql

Re: Implementing Incremental View Maintenance

2020-02-04 Thread nuko yokohama
"ROW LEVEL SECURITY" and INCREMENTAL MATERIALIZED VIEW. Hi. If ROW LEVEL SECURITY is set for the source table after creating the INCREMENTAL MATELIALIZED VIEW, the search results by that are not reflected. After setting ROW LEVEL SECURITY (similar to normal MATERIALIZED VIEW), you need to

Re: Implementing Incremental View Maintenance

2020-01-17 Thread nuko yokohama
) 17:12 Yugo NAGATA : > On Thu, 16 Jan 2020 12:59:11 +0900 > nuko yokohama wrote: > > > Aggregate operation of user-defined type cannot be specified > > (commit e150d964df7e3aeb768e4bae35d15764f8abd284) > > > > A SELECT statement using the MIN() and MAX() function

Re: Implementing Incremental View Maintenance

2020-01-16 Thread nuko yokohama
: operator does not exist ``` An execution example is shown below. ``` [ec2-user@ip-10-0-1-10 ivm]$ psql testdb -a -f extension-insert.sql -- -- pg_fraction: https://github.com/nuko-yokohama/pg_fraction -- DROP EXTENSION IF EXISTS pg_fraction CASCADE; psql:extension-insert.sql:4: NOTICE: drop

Re: Implementing Incremental View Maintenance

2020-01-15 Thread nuko yokohama
-defined type aggregate operation not supported by INCREMENTAL MATERIALIZED VIEW? An execution example is shown below. ``` [ec2-user@ip-10-0-1-10 ivm]$ cat extension-agg.sql -- -- pg_fraction: https://github.com/nuko-yokohama/pg_fraction -- DROP EXTENSION IF EXISTS pg_fraction CASCADE; DROP TABLE

Re: Implementing Incremental View Maintenance

2020-01-10 Thread nuko yokohama
LIMIT clause without ORDER BY should be prohibited when creating incremental materialized views. In SQL, the result of a LIMIT clause without ORDER BY is undefined. If the LIMIT clause is allowed when creating an incremental materialized view, incorrect results will be obtained when the view is

Re: Implementing Incremental View Maintenance

2019-12-22 Thread nuko yokohama
SELECT statement that is not IMMUTABLE must not be specified when creating a view. An expression SELECT statement that is not IMMUTABLE must not be specified when creating a view. In the current implementation, a SELECT statement containing an expression that is not IMMUTABLE can be specified

Re: Implementing Incremental View Maintenance

2019-12-04 Thread nuko yokohama
2019年12月3日(火) 14:42 Yugo Nagata : > On Mon, 2 Dec 2019 13:48:40 -0300 > Alvaro Herrera wrote: > > > On 2019-Dec-02, Yugo Nagata wrote: > > > > > On Mon, 02 Dec 2019 10:36:36 +0900 (JST) > > > Tatsuo Ishii wrote: > > > > > > > >> One thing pending in this development line is how to catalogue >

Re: Implementing Incremental View Maintenance

2019-12-04 Thread nuko yokohama
Hi. I found the problem after running "ALTER MATERIALIZED VIEW ... RENAME TO". If a view created with "CREATE INCREMENT MATERIALIZED VIEW" is renamed, subsequent INSERT operations to the base table will fail. Error message. ``` ERROR: could not open relation with OID 0 ``` Execution log. ```

To Suggest a "DROP INCREMENTAL MATERIALIZED VIEW" in psql, but the syntax error when you run.

2019-11-27 Thread nuko yokohama
Hi. I'm using the "Incremental Materialized View Maintenance" patch and have reported the following issues. (https://commitfest.postgresql.org/25/2138/) To Suggest a "DROP INCREMENTAL MATERIALIZED VIEW" in psql, but the syntax error when you run. ("DROP MATERIALIZED VIEW" command can drop