| <!-- HTML header for doxygen 1.8.4--> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <meta name="generator" content="Doxygen 1.8.13"/> |
| <meta name="keywords" content="madlib,postgres,greenplum,machine learning,data mining,deep learning,ensemble methods,data science,market basket analysis,affinity analysis,pca,lda,regression,elastic net,huber white,proportional hazards,k-means,latent dirichlet allocation,bayes,support vector machines,svm"/> |
| <title>MADlib: utilities.sql_in File Reference</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="dynsections.js"></script> |
| <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="resize.js"></script> |
| <script type="text/javascript" src="navtreedata.js"></script> |
| <script type="text/javascript" src="navtree.js"></script> |
| <script type="text/javascript"> |
| $(document).ready(initResizable); |
| </script> |
| <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="search/searchdata.js"></script> |
| <script type="text/javascript" src="search/search.js"></script> |
| <script type="text/javascript"> |
| $(document).ready(function() { init_search(); }); |
| </script> |
| <script type="text/x-mathjax-config"> |
| MathJax.Hub.Config({ |
| extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"], |
| jax: ["input/TeX","output/HTML-CSS"], |
| }); |
| </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| <!-- hack in the navigation tree --> |
| <script type="text/javascript" src="eigen_navtree_hacks.js"></script> |
| <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| <link href="madlib_extra.css" rel="stylesheet" type="text/css"/> |
| <!-- google analytics --> |
| <script> |
| (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
| ga('create', 'UA-45382226-1', 'madlib.apache.org'); |
| ga('send', 'pageview'); |
| </script> |
| </head> |
| <body> |
| <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| <div id="titlearea"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr style="height: 56px;"> |
| <td id="projectlogo"><a href="http://madlib.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td> |
| <td style="padding-left: 0.5em;"> |
| <div id="projectname"> |
| <span id="projectnumber">1.19.0</span> |
| </div> |
| <div id="projectbrief">User Documentation for Apache MADlib</div> |
| </td> |
| <td> <div id="MSearchBox" class="MSearchBoxInactive"> |
| <span class="left"> |
| <img id="MSearchSelect" src="search/mag_sel.png" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| alt=""/> |
| <input type="text" id="MSearchField" value="Search" accesskey="S" |
| onfocus="searchBox.OnSearchFieldFocus(true)" |
| onblur="searchBox.OnSearchFieldFocus(false)" |
| onkeyup="searchBox.OnSearchFieldChange(event)"/> |
| </span><span class="right"> |
| <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> |
| </span> |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.13 --> |
| <script type="text/javascript"> |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| </script> |
| </div><!-- top --> |
| <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| <div id="nav-tree"> |
| <div id="nav-tree-contents"> |
| <div id="nav-sync" class="sync"></div> |
| </div> |
| </div> |
| <div id="splitbar" style="-moz-user-select:none;" |
| class="ui-resizable-handle"> |
| </div> |
| </div> |
| <script type="text/javascript"> |
| $(document).ready(function(){initNavTree('utilities_8sql__in.html','');}); |
| </script> |
| <div id="doc-content"> |
| <!-- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| </div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="javascript:void(0)" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| <div class="header"> |
| <div class="summary"> |
| <a href="#func-members">Functions</a> </div> |
| <div class="headertitle"> |
| <div class="title">utilities.sql_in File Reference</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| |
| <p>SQL functions for carrying out routine tasks. |
| <a href="#details">More...</a></p> |
| <table class="memberdecls"> |
| <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| Functions</h2></td></tr> |
| <tr class="memitem:aab5ea2cd6201e38e24ca62b0fb91fb7a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#aab5ea2cd6201e38e24ca62b0fb91fb7a">cleanup_madlib_temp_tables</a> (text target_schema)</td></tr> |
| <tr class="memdesc:aab5ea2cd6201e38e24ca62b0fb91fb7a"><td class="mdescLeft"> </td><td class="mdescRight">Drop all tables matching pattern 'madlib_temp' in a given schema. <a href="#aab5ea2cd6201e38e24ca62b0fb91fb7a">More...</a><br /></td></tr> |
| <tr class="separator:aab5ea2cd6201e38e24ca62b0fb91fb7a"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a156eb9d1c814592e59600980977a64eb"><td class="memItemLeft" align="right" valign="top">text </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a156eb9d1c814592e59600980977a64eb">cleanup_madlib_temp_tables_script</a> (text target_schema)</td></tr> |
| <tr class="separator:a156eb9d1c814592e59600980977a64eb"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a0a26602860109f870a82badff95c2fc3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a0a26602860109f870a82badff95c2fc3">cleanup_madlib_temp_views</a> (text target_schema)</td></tr> |
| <tr class="separator:a0a26602860109f870a82badff95c2fc3"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a9ce7ffa76acc8a0638e9bc48be99f36a"><td class="memItemLeft" align="right" valign="top">text </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a9ce7ffa76acc8a0638e9bc48be99f36a">version</a> ()</td></tr> |
| <tr class="memdesc:a9ce7ffa76acc8a0638e9bc48be99f36a"><td class="mdescLeft"> </td><td class="mdescRight">Return MADlib build information. <a href="#a9ce7ffa76acc8a0638e9bc48be99f36a">More...</a><br /></td></tr> |
| <tr class="separator:a9ce7ffa76acc8a0638e9bc48be99f36a"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a76cfdbed8a6782f37f50710d855434bd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a76cfdbed8a6782f37f50710d855434bd">assert</a> (boolean condition, varchar msg)</td></tr> |
| <tr class="memdesc:a76cfdbed8a6782f37f50710d855434bd"><td class="mdescLeft"> </td><td class="mdescRight">Raise an exception if the given condition is not satisfied. <a href="#a76cfdbed8a6782f37f50710d855434bd">More...</a><br /></td></tr> |
| <tr class="separator:a76cfdbed8a6782f37f50710d855434bd"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a4d49e00b4dd6059f61ffb9fdc0a696f7"><td class="memItemLeft" align="right" valign="top">float8 </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a4d49e00b4dd6059f61ffb9fdc0a696f7">relative_error</a> (float8 approx, float8 value)</td></tr> |
| <tr class="memdesc:a4d49e00b4dd6059f61ffb9fdc0a696f7"><td class="mdescLeft"> </td><td class="mdescRight">Compute the relative error of an approximate value. <a href="#a4d49e00b4dd6059f61ffb9fdc0a696f7">More...</a><br /></td></tr> |
| <tr class="separator:a4d49e00b4dd6059f61ffb9fdc0a696f7"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a26a54368fbf2460323cacf95db76fd2f"><td class="memItemLeft" align="right" valign="top">float8 </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a26a54368fbf2460323cacf95db76fd2f">relative_error</a> (float8[] approx, float8[] value)</td></tr> |
| <tr class="memdesc:a26a54368fbf2460323cacf95db76fd2f"><td class="mdescLeft"> </td><td class="mdescRight">Compute the relative error (w.r.t. the 2-norm) of an apprixmate vector. <a href="#a26a54368fbf2460323cacf95db76fd2f">More...</a><br /></td></tr> |
| <tr class="separator:a26a54368fbf2460323cacf95db76fd2f"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:aa90ffaebb43a5cbcb5c48281cbadd3b0"><td class="memItemLeft" align="right" valign="top">boolean </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#aa90ffaebb43a5cbcb5c48281cbadd3b0">check_if_raises_error</a> (text sql)</td></tr> |
| <tr class="memdesc:aa90ffaebb43a5cbcb5c48281cbadd3b0"><td class="mdescLeft"> </td><td class="mdescRight">Check if a SQL statement raises an error. <a href="#aa90ffaebb43a5cbcb5c48281cbadd3b0">More...</a><br /></td></tr> |
| <tr class="separator:aa90ffaebb43a5cbcb5c48281cbadd3b0"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ac1f509bd94c6309b59eb4d479fb2a470"><td class="memItemLeft" align="right" valign="top">boolean </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#ac1f509bd94c6309b59eb4d479fb2a470">check_if_col_exists</a> (text source_table, text column_name)</td></tr> |
| <tr class="memdesc:ac1f509bd94c6309b59eb4d479fb2a470"><td class="mdescLeft"> </td><td class="mdescRight">Check if a column exists in a table. <a href="#ac1f509bd94c6309b59eb4d479fb2a470">More...</a><br /></td></tr> |
| <tr class="separator:ac1f509bd94c6309b59eb4d479fb2a470"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a48bed63cab78a5446fa4c122eaae3a40"><td class="memItemLeft" align="right" valign="top">boolean </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a48bed63cab78a5446fa4c122eaae3a40">isnan</a> (float8 number)</td></tr> |
| <tr class="memdesc:a48bed63cab78a5446fa4c122eaae3a40"><td class="mdescLeft"> </td><td class="mdescRight">Check if a floating-point number is NaN (not a number) <a href="#a48bed63cab78a5446fa4c122eaae3a40">More...</a><br /></td></tr> |
| <tr class="separator:a48bed63cab78a5446fa4c122eaae3a40"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a56501b6f9fabe65d7a6a6beb70a0e000"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a56501b6f9fabe65d7a6a6beb70a0e000">create_schema_pg_temp</a> ()</td></tr> |
| <tr class="memdesc:a56501b6f9fabe65d7a6a6beb70a0e000"><td class="mdescLeft"> </td><td class="mdescRight">Create the temporary schema if it does not exist yet. <a href="#a56501b6f9fabe65d7a6a6beb70a0e000">More...</a><br /></td></tr> |
| <tr class="separator:a56501b6f9fabe65d7a6a6beb70a0e000"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ab194d6a1222672c314ea39b78aad8fd0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#ab194d6a1222672c314ea39b78aad8fd0">noop</a> ()</td></tr> |
| <tr class="memdesc:ab194d6a1222672c314ea39b78aad8fd0"><td class="mdescLeft"> </td><td class="mdescRight">Create volatile noop function. <a href="#ab194d6a1222672c314ea39b78aad8fd0">More...</a><br /></td></tr> |
| <tr class="separator:ab194d6a1222672c314ea39b78aad8fd0"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a60c4765ce8dc639cbb0ad4c389f5f1ad"><td class="memItemLeft" align="right" valign="top">bytea8 </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a60c4765ce8dc639cbb0ad4c389f5f1ad">bytea8in</a> (cstring)</td></tr> |
| <tr class="separator:a60c4765ce8dc639cbb0ad4c389f5f1ad"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:adff923d42d4bdb2b631d6cafd5f37a43"><td class="memItemLeft" align="right" valign="top">cstring </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#adff923d42d4bdb2b631d6cafd5f37a43">bytea8out</a> (bytea8)</td></tr> |
| <tr class="separator:adff923d42d4bdb2b631d6cafd5f37a43"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a244a7ff30f2788a6f4816417982eb13b"><td class="memItemLeft" align="right" valign="top">bytea8 </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a244a7ff30f2788a6f4816417982eb13b">bytea8recv</a> (internal)</td></tr> |
| <tr class="separator:a244a7ff30f2788a6f4816417982eb13b"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:aeb90c740e8e6b67aa60a11c430fa9050"><td class="memItemLeft" align="right" valign="top">bytea </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#aeb90c740e8e6b67aa60a11c430fa9050">bytea8send</a> (bytea8)</td></tr> |
| <tr class="separator:aeb90c740e8e6b67aa60a11c430fa9050"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a7086f5e79c0f53a849759227759d16d7"><td class="memItemLeft" align="right" valign="top">varchar </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a7086f5e79c0f53a849759227759d16d7">__internal_get_col_names_except_dep_variable</a> (varchar source_table, varchar dependent_varname)</td></tr> |
| <tr class="memdesc:a7086f5e79c0f53a849759227759d16d7"><td class="mdescLeft"> </td><td class="mdescRight">Get all column names except dependent variable. <a href="#a7086f5e79c0f53a849759227759d16d7">More...</a><br /></td></tr> |
| <tr class="separator:a7086f5e79c0f53a849759227759d16d7"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a5b0156044142673183205154f9e63ddc"><td class="memItemLeft" align="right" valign="top">varchar </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a5b0156044142673183205154f9e63ddc">__unique_string</a> ()</td></tr> |
| <tr class="memdesc:a5b0156044142673183205154f9e63ddc"><td class="mdescLeft"> </td><td class="mdescRight">Generate random remporary names for temp table and other names. <a href="#a5b0156044142673183205154f9e63ddc">More...</a><br /></td></tr> |
| <tr class="separator:a5b0156044142673183205154f9e63ddc"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a967afc3041b28c8ceedcef8d25c26b9b"><td class="memItemLeft" align="right" valign="top">varchar [] </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a967afc3041b28c8ceedcef8d25c26b9b">_string_to_array</a> (varchar s)</td></tr> |
| <tr class="memdesc:a967afc3041b28c8ceedcef8d25c26b9b"><td class="mdescLeft"> </td><td class="mdescRight">Takes a string of comma separated values and puts it into an array. <a href="#a967afc3041b28c8ceedcef8d25c26b9b">More...</a><br /></td></tr> |
| <tr class="separator:a967afc3041b28c8ceedcef8d25c26b9b"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:abc867482053e6692047d051b679953a5"><td class="memItemLeft" align="right" valign="top">text </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#abc867482053e6692047d051b679953a5">bool_to_text</a> (boolean)</td></tr> |
| <tr class="memdesc:abc867482053e6692047d051b679953a5"><td class="mdescLeft"> </td><td class="mdescRight">Cast boolean into text. <a href="#abc867482053e6692047d051b679953a5">More...</a><br /></td></tr> |
| <tr class="separator:abc867482053e6692047d051b679953a5"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:abdd2768e61b034d04c934a981259bbfd"><td class="memItemLeft" align="right" valign="top">text </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#abdd2768e61b034d04c934a981259bbfd">__to_char</a> (anyelement val)</td></tr> |
| <tr class="memdesc:abdd2768e61b034d04c934a981259bbfd"><td class="mdescLeft"> </td><td class="mdescRight">Cast any value to text. <a href="#abdd2768e61b034d04c934a981259bbfd">More...</a><br /></td></tr> |
| <tr class="separator:abdd2768e61b034d04c934a981259bbfd"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a2dc21ec6de26adef2cf1699ed8dab5aa"><td class="memItemLeft" align="right" valign="top">set< _grp_state_type > </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a2dc21ec6de26adef2cf1699ed8dab5aa">_gen_state</a> (text[] grp_key, integer[] iteration, float8[] state)</td></tr> |
| <tr class="separator:a2dc21ec6de26adef2cf1699ed8dab5aa"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a378fd0afa1245520f2270e602ed9e6b6"><td class="memItemLeft" align="right" valign="top">float8 </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a378fd0afa1245520f2270e602ed9e6b6">_final_mode</a> (float8[])</td></tr> |
| <tr class="separator:a378fd0afa1245520f2270e602ed9e6b6"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ac25ef90f8a8e2f9b2244a57d92086c91"><td class="memItemLeft" align="right" valign="top">aggregate float8 </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#ac25ef90f8a8e2f9b2244a57d92086c91">mode</a> (float8)</td></tr> |
| <tr class="separator:ac25ef90f8a8e2f9b2244a57d92086c91"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a244f77f87f2612800b1683033a21dcca"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a244f77f87f2612800b1683033a21dcca">dropcols</a> (varchar source_table, varchar out_table, varchar cols_to_drop)</td></tr> |
| <tr class="memdesc:a244f77f87f2612800b1683033a21dcca"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new table with a subset of columns dropped from another source table. <a href="#a244f77f87f2612800b1683033a21dcca">More...</a><br /></td></tr> |
| <tr class="separator:a244f77f87f2612800b1683033a21dcca"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:af4627d77d237aeadaa4b43ff168ae322"><td class="memItemLeft" align="right" valign="top">boolean </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#af4627d77d237aeadaa4b43ff168ae322">is_pg_major_version_less_than</a> (integer compare_version)</td></tr> |
| <tr class="separator:af4627d77d237aeadaa4b43ff168ae322"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ad1c36cb57cfddb39b69fd4d46e0c7dcb"><td class="memItemLeft" align="right" valign="top">integer </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#ad1c36cb57cfddb39b69fd4d46e0c7dcb">trap_error</a> (text stmt)</td></tr> |
| <tr class="separator:ad1c36cb57cfddb39b69fd4d46e0c7dcb"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a794b853f6c901050fb253f0760feedf7"><td class="memItemLeft" align="right" valign="top">boolean </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a794b853f6c901050fb253f0760feedf7">test_error_msg</a> (text stmt, text msg)</td></tr> |
| <tr class="separator:a794b853f6c901050fb253f0760feedf7"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a2d9f28eac38148fedb9782ee2f01639c"><td class="memItemLeft" align="right" valign="top">boolean </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a2d9f28eac38148fedb9782ee2f01639c">test_input_table</a> (text stmt)</td></tr> |
| <tr class="separator:a2d9f28eac38148fedb9782ee2f01639c"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a54813ec82939f96cc899399a2ae65857"><td class="memItemLeft" align="right" valign="top">boolean </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a54813ec82939f96cc899399a2ae65857">test_output_table</a> (text stmt)</td></tr> |
| <tr class="separator:a54813ec82939f96cc899399a2ae65857"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a4df02278e7bba3e42a6eab87597e4ea8"><td class="memItemLeft" align="right" valign="top">boolean </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#a4df02278e7bba3e42a6eab87597e4ea8">is_ver_greater_than_gp_640_or_pg_11</a> ()</td></tr> |
| <tr class="separator:a4df02278e7bba3e42a6eab87597e4ea8"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ab0c056b9f6ec748b24352261276775ba"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#ab0c056b9f6ec748b24352261276775ba">assert_guc_value</a> (text guc_name, text expected_guc_value)</td></tr> |
| <tr class="separator:ab0c056b9f6ec748b24352261276775ba"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:aaaf5ac0d3f6416b4bb093fd17c5c2a14"><td class="memItemLeft" align="right" valign="top">boolean </td><td class="memItemRight" valign="bottom"><a class="el" href="utilities_8sql__in.html#aaaf5ac0d3f6416b4bb093fd17c5c2a14">is_table_unlogged</a> (text tbl_name)</td></tr> |
| <tr class="separator:aaaf5ac0d3f6416b4bb093fd17c5c2a14"><td class="memSeparator" colspan="2"> </td></tr> |
| </table> |
| <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| <div class="textblock"><dl class="section see"><dt>See also</dt><dd>For a brief overview of utility functions, see the module description <a class="el" href="group__grp__utilities.html">Database Functions</a>. </dd></dl> |
| </div><h2 class="groupheader">Function Documentation</h2> |
| <a id="a7086f5e79c0f53a849759227759d16d7"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a7086f5e79c0f53a849759227759d16d7">◆ </a></span>__internal_get_col_names_except_dep_variable()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">varchar __internal_get_col_names_except_dep_variable </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_varname</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="abdd2768e61b034d04c934a981259bbfd"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#abdd2768e61b034d04c934a981259bbfd">◆ </a></span>__to_char()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">text __to_char </td> |
| <td>(</td> |
| <td class="paramtype">anyelement </td> |
| <td class="paramname"><em>val</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">val</td><td>A value with any specific type.</td></tr> |
| </table> |
| </dd> |
| </dl> |
| <dl class="section return"><dt>Returns</dt><dd>The text format string for the value.</dd></dl> |
| <dl class="section note"><dt>Note</dt><dd>Greenplum doesn't support bit/boolean to text casting. </dd></dl> |
| |
| </div> |
| </div> |
| <a id="a5b0156044142673183205154f9e63ddc"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a5b0156044142673183205154f9e63ddc">◆ </a></span>__unique_string()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">varchar __unique_string </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a378fd0afa1245520f2270e602ed9e6b6"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a378fd0afa1245520f2270e602ed9e6b6">◆ </a></span>_final_mode()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 _final_mode </td> |
| <td>(</td> |
| <td class="paramtype">float8 </td> |
| <td class="paramname">[]</td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a2dc21ec6de26adef2cf1699ed8dab5aa"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a2dc21ec6de26adef2cf1699ed8dab5aa">◆ </a></span>_gen_state()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">set<_grp_state_type> _gen_state </td> |
| <td>(</td> |
| <td class="paramtype">text [] </td> |
| <td class="paramname"><em>grp_key</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer [] </td> |
| <td class="paramname"><em>iteration</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8 [] </td> |
| <td class="paramname"><em>state</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a967afc3041b28c8ceedcef8d25c26b9b"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a967afc3041b28c8ceedcef8d25c26b9b">◆ </a></span>_string_to_array()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">varchar [] _string_to_array </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>s</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a76cfdbed8a6782f37f50710d855434bd"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a76cfdbed8a6782f37f50710d855434bd">◆ </a></span>assert()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void assert </td> |
| <td>(</td> |
| <td class="paramtype">boolean </td> |
| <td class="paramname"><em>condition</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>msg</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="ab0c056b9f6ec748b24352261276775ba"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ab0c056b9f6ec748b24352261276775ba">◆ </a></span>assert_guc_value()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void assert_guc_value </td> |
| <td>(</td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>guc_name</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>expected_guc_value</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="abc867482053e6692047d051b679953a5"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#abc867482053e6692047d051b679953a5">◆ </a></span>bool_to_text()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">text bool_to_text </td> |
| <td>(</td> |
| <td class="paramtype">boolean </td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a60c4765ce8dc639cbb0ad4c389f5f1ad"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a60c4765ce8dc639cbb0ad4c389f5f1ad">◆ </a></span>bytea8in()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">bytea8 bytea8in </td> |
| <td>(</td> |
| <td class="paramtype">cstring </td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="adff923d42d4bdb2b631d6cafd5f37a43"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#adff923d42d4bdb2b631d6cafd5f37a43">◆ </a></span>bytea8out()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">cstring bytea8out </td> |
| <td>(</td> |
| <td class="paramtype">bytea8 </td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a244a7ff30f2788a6f4816417982eb13b"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a244a7ff30f2788a6f4816417982eb13b">◆ </a></span>bytea8recv()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">bytea8 bytea8recv </td> |
| <td>(</td> |
| <td class="paramtype">internal </td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="aeb90c740e8e6b67aa60a11c430fa9050"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#aeb90c740e8e6b67aa60a11c430fa9050">◆ </a></span>bytea8send()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">bytea bytea8send </td> |
| <td>(</td> |
| <td class="paramtype">bytea8 </td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="ac1f509bd94c6309b59eb4d479fb2a470"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ac1f509bd94c6309b59eb4d479fb2a470">◆ </a></span>check_if_col_exists()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">boolean check_if_col_exists </td> |
| <td>(</td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>column_name</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">source_table</td><td>Source table </td></tr> |
| <tr><td class="paramname">column_name</td><td>Column name in the table </td></tr> |
| </table> |
| </dd> |
| </dl> |
| <dl class="section return"><dt>Returns</dt><dd><code>TRUE</code> if it exists and FALSE if not </dd></dl> |
| |
| </div> |
| </div> |
| <a id="aa90ffaebb43a5cbcb5c48281cbadd3b0"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#aa90ffaebb43a5cbcb5c48281cbadd3b0">◆ </a></span>check_if_raises_error()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">boolean check_if_raises_error </td> |
| <td>(</td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>sql</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">sql</td><td>The SQL statement </td></tr> |
| </table> |
| </dd> |
| </dl> |
| <dl class="section return"><dt>Returns</dt><dd><code>TRUE</code> if an exception is raised while executing <code>sql</code>, <code>FALSE</code> otherwise. </dd></dl> |
| |
| </div> |
| </div> |
| <a id="aab5ea2cd6201e38e24ca62b0fb91fb7a"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#aab5ea2cd6201e38e24ca62b0fb91fb7a">◆ </a></span>cleanup_madlib_temp_tables()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void cleanup_madlib_temp_tables </td> |
| <td>(</td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>target_schema</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">target_schema</td><td>TEXT. The schema that takes affect. </td></tr> |
| </table> |
| </dd> |
| </dl> |
| |
| </div> |
| </div> |
| <a id="a156eb9d1c814592e59600980977a64eb"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a156eb9d1c814592e59600980977a64eb">◆ </a></span>cleanup_madlib_temp_tables_script()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">text cleanup_madlib_temp_tables_script </td> |
| <td>(</td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>target_schema</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a0a26602860109f870a82badff95c2fc3"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a0a26602860109f870a82badff95c2fc3">◆ </a></span>cleanup_madlib_temp_views()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void cleanup_madlib_temp_views </td> |
| <td>(</td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>target_schema</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a56501b6f9fabe65d7a6a6beb70a0e000"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a56501b6f9fabe65d7a6a6beb70a0e000">◆ </a></span>create_schema_pg_temp()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void create_schema_pg_temp </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a244f77f87f2612800b1683033a21dcca"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a244f77f87f2612800b1683033a21dcca">◆ </a></span>dropcols()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void dropcols </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>cols_to_drop</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">source_table</td><td>Name of the table containing the source data. </td></tr> |
| <tr><td class="paramname">out_table</td><td>Name of the generated table containing the output. If a table with the same name already exists, an error will be returned. </td></tr> |
| <tr><td class="paramname">cols_to_drop</td><td>Comma-separated string of column names from the source table to drop. An error is returned if the output table does not contain any columns or if a requested column is not present in the source table. </td></tr> |
| </table> |
| </dd> |
| </dl> |
| |
| </div> |
| </div> |
| <a id="af4627d77d237aeadaa4b43ff168ae322"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#af4627d77d237aeadaa4b43ff168ae322">◆ </a></span>is_pg_major_version_less_than()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">boolean is_pg_major_version_less_than </td> |
| <td>(</td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>compare_version</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="aaaf5ac0d3f6416b4bb093fd17c5c2a14"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#aaaf5ac0d3f6416b4bb093fd17c5c2a14">◆ </a></span>is_table_unlogged()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">boolean is_table_unlogged </td> |
| <td>(</td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>tbl_name</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a4df02278e7bba3e42a6eab87597e4ea8"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a4df02278e7bba3e42a6eab87597e4ea8">◆ </a></span>is_ver_greater_than_gp_640_or_pg_11()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">boolean is_ver_greater_than_gp_640_or_pg_11 </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a48bed63cab78a5446fa4c122eaae3a40"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a48bed63cab78a5446fa4c122eaae3a40">◆ </a></span>isnan()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">boolean isnan </td> |
| <td>(</td> |
| <td class="paramtype">float8 </td> |
| <td class="paramname"><em>number</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <p>This function exists for portability. Some DBMSs like PostgreSQL treat floating-point numbers as fully ordered – contrary to IEEE 754. (See, e.g., the <a href="http://www.postgresql.org/docs/current/static/datatype-numeric.html#DATATYPE-FLOAT">PostgreSQL documentation</a>. For portability, MADlib code should not make use of such "features" directly, but only use <a class="el" href="utilities_8sql__in.html#a48bed63cab78a5446fa4c122eaae3a40" title="Check if a floating-point number is NaN (not a number) ">isnan()</a> instead.</p> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">number</td><td></td></tr> |
| </table> |
| </dd> |
| </dl> |
| <dl class="section return"><dt>Returns</dt><dd><code>TRUE</code> if <code>number</code> is <code>NaN</code>, <code>FALSE</code> otherwise </dd></dl> |
| |
| </div> |
| </div> |
| <a id="ac25ef90f8a8e2f9b2244a57d92086c91"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ac25ef90f8a8e2f9b2244a57d92086c91">◆ </a></span>mode()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">aggregate float8 mode </td> |
| <td>(</td> |
| <td class="paramtype">float8 </td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="ab194d6a1222672c314ea39b78aad8fd0"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ab194d6a1222672c314ea39b78aad8fd0">◆ </a></span>noop()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void noop </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <p>The only use of this function is as an optimization fence when used in the SELECT list of a query. See, e.g., <a href="http://archives.postgresql.org/pgsql-sql/2012-07/msg00030.php">http://archives.postgresql.org/pgsql-sql/2012-07/msg00030.php</a> </p> |
| |
| </div> |
| </div> |
| <a id="a4d49e00b4dd6059f61ffb9fdc0a696f7"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a4d49e00b4dd6059f61ffb9fdc0a696f7">◆ </a></span>relative_error() <span class="overload">[1/2]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 relative_error </td> |
| <td>(</td> |
| <td class="paramtype">float8 </td> |
| <td class="paramname"><em>approx</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8 </td> |
| <td class="paramname"><em>value</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a26a54368fbf2460323cacf95db76fd2f"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a26a54368fbf2460323cacf95db76fd2f">◆ </a></span>relative_error() <span class="overload">[2/2]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 relative_error </td> |
| <td>(</td> |
| <td class="paramtype">float8 [] </td> |
| <td class="paramname"><em>approx</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8 [] </td> |
| <td class="paramname"><em>value</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a794b853f6c901050fb253f0760feedf7"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a794b853f6c901050fb253f0760feedf7">◆ </a></span>test_error_msg()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">boolean test_error_msg </td> |
| <td>(</td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>stmt</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>msg</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a2d9f28eac38148fedb9782ee2f01639c"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a2d9f28eac38148fedb9782ee2f01639c">◆ </a></span>test_input_table()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">boolean test_input_table </td> |
| <td>(</td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>stmt</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a54813ec82939f96cc899399a2ae65857"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a54813ec82939f96cc899399a2ae65857">◆ </a></span>test_output_table()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">boolean test_output_table </td> |
| <td>(</td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>stmt</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="ad1c36cb57cfddb39b69fd4d46e0c7dcb"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ad1c36cb57cfddb39b69fd4d46e0c7dcb">◆ </a></span>trap_error()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">integer trap_error </td> |
| <td>(</td> |
| <td class="paramtype">text </td> |
| <td class="paramname"><em>stmt</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a id="a9ce7ffa76acc8a0638e9bc48be99f36a"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a9ce7ffa76acc8a0638e9bc48be99f36a">◆ </a></span>version()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">text version </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="section return"><dt>Returns</dt><dd>Summary of MADlib build information, consisting of MADlib version, git revision, cmake configuration time, build type, build system, C compiler, and C++ compiler </dd></dl> |
| |
| </div> |
| </div> |
| </div><!-- contents --> |
| </div><!-- doc-content --> |
| <!-- start footer part --> |
| <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| <ul> |
| <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_efbcf68973d247bbf15f9eecae7f24e3.html">ports</a></li><li class="navelem"><a class="el" href="dir_a4a48839224ef8488facbffa8a397967.html">postgres</a></li><li class="navelem"><a class="el" href="dir_dc596537ad427a4d866006d1a3e1fe29.html">modules</a></li><li class="navelem"><a class="el" href="dir_8d53e1c0026e7e34b4cd68f8b91426d6.html">utilities</a></li><li class="navelem"><a class="el" href="utilities_8sql__in.html">utilities.sql_in</a></li> |
| <li class="footer">Generated on Wed Dec 15 2021 20:27:19 for MADlib by |
| <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| </ul> |
| </div> |
| </body> |
| </html> |