doc-exports/docs/dws/dev/dws_06_0003.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-01-19 13:37:49 +00:00

18 lines
4.4 KiB
HTML

<a name="EN-US_TOPIC_0000001099504750"></a><a name="EN-US_TOPIC_0000001099504750"></a>
<h1 class="topictitle1">GaussDB(DWS) gsql, PostgreSQL psql, and libpq</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_section16364143664812"><h4 class="sectiontitle">GaussDB(DWS) gsql and PostgreSQL psql</h4><p id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_p2531141514131">GaussDB(DWS) gsql differs from PostgreSQL psql in that the former has made the following changes to enhance security:</p>
<ul id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_ul82051913151417"><li id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_li8205913131412">User passwords cannot be set by running the <strong id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_b6225207191712">\password</strong> meta-command.</li><li id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_li1274618538403">The <strong id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_b10457625201915">\i+</strong>, <strong id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_b16992103701916">\ir+</strong>, and <strong id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_b98434411918">\include_relative+</strong> meta-commands and the input and output parameter <strong id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_b3959124172020">-k</strong> are added to encrypt imported and exported files.</li><li id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_li568272154111">Historical command lines cannot be printed to files using the <strong id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_b1487584802020">\s</strong> meta-command.</li><li id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_li1898782119142">SQL statements related to sensitive operations, such as those containing passwords, are not recorded. Users cannot see such records when they turn pages or press up or down arrow keys to view the SQL history.</li><li id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_li195771529594">After a connection is set up, a message is displayed to inform users of password expiration and to show version information.</li></ul>
<p id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_p1839663620149">gsql provides the following additional functions based on psql:</p>
<ul id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_ul527752052917"><li id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_li197648537328">The output format parameter <strong id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_b9874111319328">-r</strong> is added to allow you to adjust the focus by pressing the <strong id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_b1499613429339">Tab</strong> key or arrow keys when entering commands.</li><li id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_li17277132082916">The <strong id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_b4145165215353">\parallel</strong> meta-command is added to improve execution performance.</li><li id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_li57687145517">The <strong id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_b13205151615493">\set RETRY</strong> meta-command is added to support retry upon statement errors.</li><li id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_li824015207332">Slashes (/) are used as the default terminator at the end of PL/SQL statements CREATE OR REPLACE FUNCTION/PROCEDURE.</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_section695110143405"><h4 class="sectiontitle">libpq</h4><p id="EN-US_TOPIC_0000001099504750__en-us_topic_0000001098811116_p211294719405">During the development of certain GaussDB(DWS) functions such as the gsql client connection tool, PostgreSQL libpq is greatly modified. However, the libpq interface is not verified in application development. You are not advised to use this set of APIs for application development, because underlying risks probably exist. You can use the ODBC or JDBC APIs instead.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0002.html">Differences Between GaussDB(DWS) and PostgreSQL</a></div>
</div>
</div>