mirror of
https://github.com/postgres/postgres.git
synced 2025-12-12 02:37:31 +03:00
Format PL/Python module contents test vertically
It makes it readable again and makes merges more manageable.
This commit is contained in:
@@ -27,11 +27,11 @@ select "Argument test #1"(users, fname, lname) from users where lname = 'doe' or
|
||||
|
||||
|
||||
-- check module contents
|
||||
CREATE FUNCTION module_contents() RETURNS text AS
|
||||
CREATE FUNCTION module_contents() RETURNS SETOF text AS
|
||||
$$
|
||||
contents = list(filter(lambda x: not x.startswith("__"), dir(plpy)))
|
||||
contents.sort()
|
||||
return ", ".join(contents)
|
||||
return contents
|
||||
$$ LANGUAGE plpythonu;
|
||||
|
||||
select module_contents();
|
||||
|
||||
Reference in New Issue
Block a user