add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
CREATE TABLE
INSERT 0 1
CREATE FUNCTION
expect_false
t
SELECT 1
CREATE FUNCTION
ERROR:  column reference "eid" is ambiguous
LINE 1: ...CT EXISTS(SELECT FROM specializes s WHERE s.eid = eid AND s....
                                                             ^
DETAIL:  It could refer to either a PL/pgSQL variable or a table column.
QUERY:  SELECT EXISTS(SELECT FROM specializes s WHERE s.eid = eid AND s.name = course_area)
CONTEXT:  PL/pgSQL function func_plpgsql(integer,text) line 3 at RETURN
CREATE FUNCTION
CREATE FUNCTION
f1_expect_false f1_expect_true f2_expect_false f2_expect_true
f t f t
SELECT 1