You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While PL/sh will happily create a function returning SETOF TEXT, for example, I don't see a way to actually do such a thing. Is there something clever I've missed?
CREATE OR REPLACE FUNCTION ls(TEXT)
RETURNS SETOF TEXT
LANGUAGE plsh
AS $$
#!/bin/bash
ls "$1"
$$;
which is fine as far as it goes. However:
SELECT * FROM ls('/Users');
ls
-----------
502648132+
Shared +
wsroot
(1 row) <--- expected 3 rows here.
The text was updated successfully, but these errors were encountered:
While PL/sh will happily create a function returning SETOF TEXT, for example, I don't see a way to actually do such a thing. Is there something clever I've missed?
which is fine as far as it goes. However:
The text was updated successfully, but these errors were encountered: