Skip to content

Instantly share code, notes, and snippets.

View cszawisza's full-sized avatar

Zawisza cszawisza

  • poland
View GitHub Profile
@cszawisza
cszawisza / x86_64-unknown-linux-gnu
Created May 8, 2017 05:20
/usr/share/site/x86_64-unknown-linux-gnu
#!/bin/sh
# Site script for configure. It is resourced via $CONFIG_SITE environment varaible.
# If user did not specify libdir, guess the correct target:
# Use lib64 for 64 bit bi-arch targets, keep the default for the rest.
if test "$libdir" = '${exec_prefix}/lib' ; then
ac_config_site_64bit_host=NONE
case "$host" in
@cszawisza
cszawisza / gist:c8a8456396a87a5db012
Last active August 29, 2015 14:18
Get functions from postgresql
SELECT n.nspname as "Schema",
p.proname ,
pg_catalog.pg_get_function_result(p.oid) ,
pg_catalog.pg_get_function_arguments(p.oid) ,
CASE
WHEN length( pg_catalog.pg_get_function_arguments(p.oid)) = 0 THEN 0
ELSE array_length( regexp_split_to_array(pg_catalog.pg_get_function_arguments(p.oid), E'\,+'),1)
END as "nargs"
FROM pg_catalog.pg_proc p