pgsql: Make rewriter prevent auto-updates on views with conditional INS

2020-01-14 Thread Dean Rasheed
Make rewriter prevent auto-updates on views with conditional INSTEAD rules. A view with conditional INSTEAD rules and no unconditional INSTEAD rules or INSTEAD OF triggers is not auto-updatable. Previously we relied on a check in the executor to catch this, but that's problematic since the

pgsql: Make rewriter prevent auto-updates on views with conditional INS

2020-01-14 Thread Dean Rasheed
Make rewriter prevent auto-updates on views with conditional INSTEAD rules. A view with conditional INSTEAD rules and no unconditional INSTEAD rules or INSTEAD OF triggers is not auto-updatable. Previously we relied on a check in the executor to catch this, but that's problematic since the

pgsql: Make rewriter prevent auto-updates on views with conditional INS

2020-01-14 Thread Dean Rasheed
Make rewriter prevent auto-updates on views with conditional INSTEAD rules. A view with conditional INSTEAD rules and no unconditional INSTEAD rules or INSTEAD OF triggers is not auto-updatable. Previously we relied on a check in the executor to catch this, but that's problematic since the

pgsql: Make rewriter prevent auto-updates on views with conditional INS

2020-01-14 Thread Dean Rasheed
Make rewriter prevent auto-updates on views with conditional INSTEAD rules. A view with conditional INSTEAD rules and no unconditional INSTEAD rules or INSTEAD OF triggers is not auto-updatable. Previously we relied on a check in the executor to catch this, but that's problematic since the

pgsql: Make rewriter prevent auto-updates on views with conditional INS

2020-01-14 Thread Dean Rasheed
Make rewriter prevent auto-updates on views with conditional INSTEAD rules. A view with conditional INSTEAD rules and no unconditional INSTEAD rules or INSTEAD OF triggers is not auto-updatable. Previously we relied on a check in the executor to catch this, but that's problematic since the

pgsql: Make rewriter prevent auto-updates on views with conditional INS

2020-01-14 Thread Dean Rasheed
Make rewriter prevent auto-updates on views with conditional INSTEAD rules. A view with conditional INSTEAD rules and no unconditional INSTEAD rules or INSTEAD OF triggers is not auto-updatable. Previously we relied on a check in the executor to catch this, but that's problematic since the

pgsql: Make rewriter prevent auto-updates on views with conditional INS

2020-01-14 Thread Dean Rasheed
Make rewriter prevent auto-updates on views with conditional INSTEAD rules. A view with conditional INSTEAD rules and no unconditional INSTEAD rules or INSTEAD OF triggers is not auto-updatable. Previously we relied on a check in the executor to catch this, but that's problematic since the