Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SETOF #12

Open
davidfetter opened this issue Jun 28, 2017 · 2 comments
Open

SETOF #12

davidfetter opened this issue Jun 28, 2017 · 2 comments

Comments

@davidfetter
Copy link

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.
@davidfetter
Copy link
Author

Bump

@df7cb
Copy link
Contributor

df7cb commented Mar 25, 2019

That would need a different language handler, I'd think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants