
{"id":3530,"date":"2023-01-24T08:34:05","date_gmt":"2023-01-24T08:34:05","guid":{"rendered":"https:\/\/test.opensource-db.in\/wp1\/?p=3530"},"modified":"2023-01-24T10:58:31","modified_gmt":"2023-01-24T10:58:31","slug":"fetch-parameters-metadata-datatype-of-procedure-function","status":"publish","type":"post","link":"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/","title":{"rendered":"Fetch parameters &#038; metadata datatype of Procedure\/Function"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In an interesting discussion with one of our Customers&#8217; Development team, a question came up:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>&#8220;Do you have a query to get the list of input\/output parameters in the defined sequence for a given procedure\/function?&#8221;<\/strong><\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Obviously, we did two things a) Do a quick search to see if anyone had this requirement before; b) See if there was something already available as part of PostgreSQL catalog tables.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;re not pretty happy with the search results. Of course, there were a few queries that did give basic input parameters, but, if the input parameters are having USER-DEFINED TYPES, then we&#8217;re at loss.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Read on to know how to go about it &#8211; get the procedure\/function parameters list.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Below is an example to get metadata of a procedure, you can try it out for a function as well.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">&#8211;Creating a few TYPES for demo purposes (input parameters to procedure)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TYPE zz_enum_test_type AS ENUM ('new', 'open', 'closed');\n\nCREATE TYPE zz_test_type AS      \n  (description        text\n  ,item_length        int4\n  ,item_breadth       int4\n  ,item_height        int4);\n\nCREATE TYPE zz_test_lines_type AS\n  (line_id            int4\n  ,line_type          text\n  ,description        text);\n\nCREATE TYPE zz_test_hdr_type AS  \n  (hdr_id             int4\n  ,hdr_type           text\n  ,v_test_lines_type  zz_test_lines_type);<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">&#8211;Creating a procedure with the above types as input parameters<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE OR REPLACE PROCEDURE pro4\n  (p1              in      int\n  ,p2              in      zz_test_type\n  ,p3              in      zz_enum_test_type\n  ,p_test_hdr_type in      zz_test_hdr_type\n  ,x1              in out  int)\nLANGUAGE plpgsql\n    as $$\n      BEGIN\n      SELECT 10*n into x1 where 1=1;\n      RAISE NOTICE 'The result is %',x1;\n      END;\n$$;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">&#8211;Create a recursive sub-parameters view<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE OR REPLACE VIEW zz_get_sub_parameters_v AS\nWITH RECURSIVE get_sub_parameters\nAS\n(   \n  SELECT t.typname::text                                     as  obj_name\n          ,a.attnum::text                                      as  sub_parameter_sequence\n          ,a.attname::text                                     as  parameter_name_disp\n          ,a.attname::text                                     as  parameter_name\n          ,pg_catalog.format_type ( a.atttypid, a.atttypmod )  as  parameter_data_type\n     FROM pg_catalog.pg_attribute a\n     JOIN pg_catalog.pg_type      t\n       ON a.attrelid = t.typrelid\n     JOIN pg_catalog.pg_namespace n\n       ON ( n.oid = t.typnamespace )\n    --where t.typname = 'zz_test_hdr_type'  --uncomment this if you want to test \n    union all \n    SELECT g.obj_name::text\n          ,(g.sub_parameter_sequence ||'.'||a1.attnum)::text   as sub_parameter_sequence\n          ,(g.parameter_name_disp    ||'.'||a1.attname)::text  as parameter_name_disp\n          ,a1.attname::text                                    as parameter_name\n          ,pg_catalog.format_type( a1.atttypid, a1.atttypmod ) as parameter_data_type\n     FROM pg_catalog.pg_attribute a1\n     JOIN pg_catalog.pg_type      t1\n       ON a1.attrelid = t1.typrelid\n     JOIN pg_catalog.pg_namespace n1\n       ON ( n1.oid = t1.typnamespace )\n     join get_sub_parameters g on t1.typname = g.parameter_data_type\n)\nSELECT * FROM get_sub_parameters \n  ORDER BY sub_parameter_sequence;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">&#8211;Run the query to see the recursive data<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM zz_get_sub_parameters_v  \n  WHERE obj_name= 'zz_test_hdr_type';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">the output would look like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>     obj_name     | sub_parameter_sequence |      parameter_name_disp      |  parameter_name   | parameter_data_type \n------------------+------------------------+-------------------------------+-------------------+---------------------\n zz_test_hdr_type | 1                      | hdr_id                        | hdr_id            | integer\n zz_test_hdr_type | 2                      | hdr_type                      | hdr_type          | text\n zz_test_hdr_type | 3                      | v_test_lines_type             | v_test_lines_type | zz_test_lines_type\n zz_test_hdr_type | 3.1                    | v_test_lines_type.line_id     | line_id           | integer\n zz_test_hdr_type | 3.2                    | v_test_lines_type.line_type   | line_type         | text\n zz_test_hdr_type | 3.3                    | v_test_lines_type.description | description       | text\n(6 rows)\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">&#8211;Create a function that will give metadata of a given procedure<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE OR REPLACE FUNCTION zz_get_metadata_f(p_routine_schema  name\n                                            ,p_routine_name    name)\nRETURNS TABLE (out_routine_schema            text\n              ,out_routine_type              text\n              ,out_routine_internal_name     text\n              ,out_routine_name              text\n              ,out_parameter_sequence        text\n              ,out_parameter_name            text\n              ,out_parameter_mode            text\n              ,out_parameter_data_type       text\n              ,out_enum_values               text)\nLANGUAGE plpgsql\nAS $$\nBEGIN\n     RETURN QUERY\n            WITH RECURSIVE get_metadata\n            AS\n            (\n                --non-recursive query start\n              SELECT row_number() OVER (ORDER BY proc.specific_schema,proc.specific_name,args.ordinal_position)row_num\n                    ,proc.specific_schema::text   as routine_schema\n                    ,proc.routine_type::text      as routine_type\n                    ,proc.specific_name::text     as routine_internal_name\n                    ,proc.routine_name::text      as routine_name\n                    ,proc.external_language::text as ext_language\n                    ,(args.ordinal_position || '.' || 0)::text  as parameter_sequence\n                    ,args.parameter_name::text\n                    ,args.parameter_mode::text\n                    ,(case when args.data_type='USER-DEFINED' then args.udt_name else args.data_type end)  ::text         as parameter_data_type\n                    ,args.udt_catalog::text \n                    ,args.udt_schema::text \n                    ,args.udt_name::text\n              FROM information_schema.routines     proc\n              LEFT JOIN information_schema.parameters   args\n                   ON proc.specific_schema = args.specific_schema\n                  AND proc.specific_name   = args.specific_name\n                WHERE proc.routine_schema  = coalesce(p_routine_schema,proc.routine_schema) --give your custom schema here or comment it. if you comment it, it might take time to execute\n                --and proc.routine_type    = 'PROCEDURE'\n                --non-recursive query end\n            UNION ALL \n                --RECURSIVE QUERY START\n                SELECT g.row_num AS row_num\n                      ,g.routine_schema::text \n                      ,g.routine_type::text\n                      ,g.routine_internal_name::text\n                      ,g.routine_name::text\n                      ,g.ext_language::text\n                      ,(substring(g.parameter_sequence,1,(length(g.parameter_sequence)-2))||'.'||z.sub_parameter_sequence)::text\n                      ,g.parameter_name||'.'||z.parameter_name_disp::text\n                      ,g.parameter_mode::text\n                      ,z.parameter_data_type::text\n                      ,null::text \n                      ,null::text \n                      ,null::text\n                  FROM zz_get_sub_parameters_v z\n            INNER JOIN get_metadata g ON g.udt_name = z.obj_name  --this is recursive join\n            ) --recursive query end\n              --with recursive get_metadata ends here. actual query is below\n            SELECT routine_schema\n                  ,routine_type\n                  ,routine_internal_name\n                  ,routine_name\n                  ,parameter_sequence\n                  ,parameter_name\n                  ,parameter_mode\n                  ,parameter_data_type\n                  ,(SELECT string_agg(pg_enum.enumlabel,',')\n            \t\t      FROM pg_type \n            \t\t      JOIN pg_enum ON pg_enum.enumtypid = pg_type.oid\n                     where typname = zz.parameter_data_type)::text enum_values\n              FROM get_metadata      zz \n             WHERE routine_name    = p_routine_name\n             ORDER BY row_num,parameter_sequence;\nEND; \n$$<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Now, the final call to get the parameters list in sequence<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM zz_get_metadata_f('apps','pro4');\n\n|out_routine_schema|out_routine_type|out_routine_internal_name|out_routine_name|out_parameter_sequence|out_parameter_name                           |out_parameter_mode|out_parameter_data_type|out_enum_values|\n|------------------|----------------|-------------------------|----------------|----------------------|---------------------------------------------|------------------|-----------------------|---------------|\n|apps              |PROCEDURE       |pro4_41623               |pro4            |1.0                   |p1                                           |IN                |integer                |               |\n|apps              |PROCEDURE       |pro4_41623               |pro4            |2.0                   |p2                                           |IN                |zz_test_type           |               |\n|apps              |PROCEDURE       |pro4_41623               |pro4            |2.1                   |p2.description                               |IN                |text                   |               |\n|apps              |PROCEDURE       |pro4_41623               |pro4            |2.2                   |p2.item_length                               |IN                |integer                |               |\n|apps              |PROCEDURE       |pro4_41623               |pro4            |2.3                   |p2.item_breadth                              |IN                |integer                |               |\n|apps              |PROCEDURE       |pro4_41623               |pro4            |2.4                   |p2.item_height                               |IN                |integer                |               |\n|apps              |PROCEDURE       |pro4_41623               |pro4            |3.0                   |p3                                           |IN                |zz_enum_test_type      |new,open,closed|\n|apps              |PROCEDURE       |pro4_41623               |pro4            |4.0                   |p_test_hdr_type                              |IN                |zz_test_hdr_type       |               |\n|apps              |PROCEDURE       |pro4_41623               |pro4            |4.1                   |p_test_hdr_type.hdr_id                       |IN                |integer                |               |\n|apps              |PROCEDURE       |pro4_41623               |pro4            |4.2                   |p_test_hdr_type.hdr_type                     |IN                |text                   |               |\n|apps              |PROCEDURE       |pro4_41623               |pro4            |4.3                   |p_test_hdr_type.v_test_lines_type            |IN                |zz_test_lines_type     |               |\n|apps              |PROCEDURE       |pro4_41623               |pro4            |4.3.1                 |p_test_hdr_type.v_test_lines_type.line_id    |IN                |integer                |               |\n|apps              |PROCEDURE       |pro4_41623               |pro4            |4.3.2                 |p_test_hdr_type.v_test_lines_type.line_type  |IN                |text                   |               |\n|apps              |PROCEDURE       |pro4_41623               |pro4            |4.3.3                 |p_test_hdr_type.v_test_lines_type.description|IN                |text                   |               |\n|apps              |PROCEDURE       |pro4_41623               |pro4            |5.0                   |x1                                           |INOUT             |integer                |               |\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">As you can see from the above query output the Procedure <code>pro4<\/code> parameters &amp; metadata were fetched.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let us know what you think about it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/calendly.com\/info-osdb\" target=\"_blank\" rel=\"noreferrer noopener\">Talk to us<\/a> if you need assistance with your PostgreSQL databases.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In an interesting discussion with one of our Customers&#8217; Development team, a question came up: &#8220;Do you have a query [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[23,42],"tags":[37,26,43],"class_list":["post-3530","post","type-post","status-publish","format-standard","hentry","category-postgresql-14","category-postgresql-15","tag-postgres","tag-postgresql","tag-procedures"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fetch parameters &amp; metadata datatype of Procedure\/Function - OpenSource DB<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fetch parameters &amp; metadata datatype of Procedure\/Function - OpenSource DB\" \/>\n<meta property=\"og:description\" content=\"In an interesting discussion with one of our Customers&#8217; Development team, a question came up: &#8220;Do you have a query [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/\" \/>\n<meta property=\"og:site_name\" content=\"OpenSource DB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-24T08:34:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-24T10:58:31+00:00\" \/>\n<meta name=\"author\" content=\"Hari Kiran\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@opensource_db\" \/>\n<meta name=\"twitter:site\" content=\"@opensource_db\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hari Kiran\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/\"},\"author\":{\"name\":\"Hari Kiran\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/2d16bf6a94c0502f1c5b69e4a36e9a09\"},\"headline\":\"Fetch parameters &#038; metadata datatype of Procedure\/Function\",\"datePublished\":\"2023-01-24T08:34:05+00:00\",\"dateModified\":\"2023-01-24T10:58:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/\"},\"wordCount\":245,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#organization\"},\"keywords\":[\"postgres\",\"postgresql\",\"procedures\"],\"articleSection\":[\"PostgreSQL 14\",\"PostgreSQL 15\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/\",\"name\":\"Fetch parameters & metadata datatype of Procedure\/Function - OpenSource DB\",\"isPartOf\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#website\"},\"datePublished\":\"2023-01-24T08:34:05+00:00\",\"dateModified\":\"2023-01-24T10:58:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.opensource-db.in\/wp1\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fetch parameters &#038; metadata datatype of Procedure\/Function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#website\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/\",\"name\":\"OpenSource DB\",\"description\":\"Your Trusted OpenSource Databases partner\",\"publisher\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/test.opensource-db.in\/wp1\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#organization\",\"name\":\"OPENSOURCE DB PRIVATE LIMITED\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png\",\"contentUrl\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png\",\"width\":368,\"height\":120,\"caption\":\"OPENSOURCE DB PRIVATE LIMITED\"},\"image\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/\",\"https:\/\/x.com\/opensource_db\",\"https:\/\/www.youtube.com\/channel\/UCmTI5h\",\"https:\/\/www.linkedin.com\/company\/opensource-db\",\"https:\/\/www.instagram.com\/opensource_db\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/2d16bf6a94c0502f1c5b69e4a36e9a09\",\"name\":\"Hari Kiran\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c9afef742ba871448bf401518655463f5e87b02f9fbd0096e88f857c51896822?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c9afef742ba871448bf401518655463f5e87b02f9fbd0096e88f857c51896822?s=96&d=mm&r=g\",\"caption\":\"Hari Kiran\"},\"description\":\"Hari Kiran has over 15 years of extensive experience in areas of operations and managing multiple database technologies. A proven leader with excellent skills in building relationships, positive team dynamics, and decision-making. Hari also has strong Open Source expertise in Professional Services. He has the experience to help you refine your strategy and drive execution.\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/author\/harikiranopensource-db-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fetch parameters & metadata datatype of Procedure\/Function - OpenSource DB","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Fetch parameters & metadata datatype of Procedure\/Function - OpenSource DB","og_description":"In an interesting discussion with one of our Customers&#8217; Development team, a question came up: &#8220;Do you have a query [&hellip;]","og_url":"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/","og_site_name":"OpenSource DB","article_publisher":"https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/","article_published_time":"2023-01-24T08:34:05+00:00","article_modified_time":"2023-01-24T10:58:31+00:00","author":"Hari Kiran","twitter_card":"summary_large_image","twitter_creator":"@opensource_db","twitter_site":"@opensource_db","twitter_misc":{"Written by":"Hari Kiran","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/#article","isPartOf":{"@id":"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/"},"author":{"name":"Hari Kiran","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/2d16bf6a94c0502f1c5b69e4a36e9a09"},"headline":"Fetch parameters &#038; metadata datatype of Procedure\/Function","datePublished":"2023-01-24T08:34:05+00:00","dateModified":"2023-01-24T10:58:31+00:00","mainEntityOfPage":{"@id":"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/"},"wordCount":245,"commentCount":0,"publisher":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#organization"},"keywords":["postgres","postgresql","procedures"],"articleSection":["PostgreSQL 14","PostgreSQL 15"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/","url":"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/","name":"Fetch parameters & metadata datatype of Procedure\/Function - OpenSource DB","isPartOf":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#website"},"datePublished":"2023-01-24T08:34:05+00:00","dateModified":"2023-01-24T10:58:31+00:00","breadcrumb":{"@id":"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/test.opensource-db.in\/wp1\/fetch-parameters-metadata-datatype-of-procedure-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.opensource-db.in\/wp1\/"},{"@type":"ListItem","position":2,"name":"Fetch parameters &#038; metadata datatype of Procedure\/Function"}]},{"@type":"WebSite","@id":"https:\/\/test.opensource-db.in\/wp1\/#website","url":"https:\/\/test.opensource-db.in\/wp1\/","name":"OpenSource DB","description":"Your Trusted OpenSource Databases partner","publisher":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/test.opensource-db.in\/wp1\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/test.opensource-db.in\/wp1\/#organization","name":"OPENSOURCE DB PRIVATE LIMITED","url":"https:\/\/test.opensource-db.in\/wp1\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/","url":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png","contentUrl":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png","width":368,"height":120,"caption":"OPENSOURCE DB PRIVATE LIMITED"},"image":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/","https:\/\/x.com\/opensource_db","https:\/\/www.youtube.com\/channel\/UCmTI5h","https:\/\/www.linkedin.com\/company\/opensource-db","https:\/\/www.instagram.com\/opensource_db\/"]},{"@type":"Person","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/2d16bf6a94c0502f1c5b69e4a36e9a09","name":"Hari Kiran","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c9afef742ba871448bf401518655463f5e87b02f9fbd0096e88f857c51896822?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c9afef742ba871448bf401518655463f5e87b02f9fbd0096e88f857c51896822?s=96&d=mm&r=g","caption":"Hari Kiran"},"description":"Hari Kiran has over 15 years of extensive experience in areas of operations and managing multiple database technologies. A proven leader with excellent skills in building relationships, positive team dynamics, and decision-making. Hari also has strong Open Source expertise in Professional Services. He has the experience to help you refine your strategy and drive execution.","url":"https:\/\/test.opensource-db.in\/wp1\/author\/harikiranopensource-db-com\/"}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"Hari Kiran","author_link":"https:\/\/test.opensource-db.in\/wp1\/author\/harikiranopensource-db-com\/"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/postgres\/postgresql-14\/\" rel=\"category tag\">PostgreSQL 14<\/a> <a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/postgres\/postgresql-15\/\" rel=\"category tag\">PostgreSQL 15<\/a>","rttpg_excerpt":"In an interesting discussion with one of our Customers&#8217; Development team, a question came up: &#8220;Do you have a query [&hellip;]","_links":{"self":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/3530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/comments?post=3530"}],"version-history":[{"count":4,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/3530\/revisions"}],"predecessor-version":[{"id":3538,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/3530\/revisions\/3538"}],"wp:attachment":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/media?parent=3530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/categories?post=3530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/tags?post=3530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}