By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 2
CREATE FUNCTION
BEGIN
| find_customer_name_by_email |
|---|
| customer_cursor |
SELECT 1
| name |
|---|
| Petya |
FETCH 1
COMMIT
BEGIN
| find_customer_name_by_email |
|---|
| customer_cursor |
SELECT 1
| name |
|---|
| Vasya |
| Petya |
FETCH 2
COMMIT