mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 00:02:13 -04:00
Compare commits
No commits in common. "178ee1d858d89f6d86f42a84bd4b8014ddfa7245" and "cf352ddcdd84d959774766347b24f4e800ffdd3c" have entirely different histories.
178ee1d858
...
cf352ddcdd
@ -412,6 +412,12 @@ EXEC SQL DISCONNECT <optional><replaceable>connection</replaceable></optional>;
|
|||||||
</simpara>
|
</simpara>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<simpara>
|
||||||
|
<literal>DEFAULT</literal>
|
||||||
|
</simpara>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<simpara>
|
<simpara>
|
||||||
<literal>CURRENT</literal>
|
<literal>CURRENT</literal>
|
||||||
@ -7122,6 +7128,7 @@ EXEC SQL DEALLOCATE DESCRIPTOR mydesc;
|
|||||||
<synopsis>
|
<synopsis>
|
||||||
DISCONNECT <replaceable class="parameter">connection_name</replaceable>
|
DISCONNECT <replaceable class="parameter">connection_name</replaceable>
|
||||||
DISCONNECT [ CURRENT ]
|
DISCONNECT [ CURRENT ]
|
||||||
|
DISCONNECT DEFAULT
|
||||||
DISCONNECT ALL
|
DISCONNECT ALL
|
||||||
</synopsis>
|
</synopsis>
|
||||||
</refsynopsisdiv>
|
</refsynopsisdiv>
|
||||||
@ -7162,6 +7169,15 @@ DISCONNECT ALL
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry id="ecpg-sql-disconnect-default">
|
||||||
|
<term><literal>DEFAULT</literal></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Close the default connection.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry id="ecpg-sql-disconnect-all">
|
<varlistentry id="ecpg-sql-disconnect-all">
|
||||||
<term><literal>ALL</literal></term>
|
<term><literal>ALL</literal></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -7180,11 +7196,13 @@ DISCONNECT ALL
|
|||||||
int
|
int
|
||||||
main(void)
|
main(void)
|
||||||
{
|
{
|
||||||
|
EXEC SQL CONNECT TO testdb AS DEFAULT USER testuser;
|
||||||
EXEC SQL CONNECT TO testdb AS con1 USER testuser;
|
EXEC SQL CONNECT TO testdb AS con1 USER testuser;
|
||||||
EXEC SQL CONNECT TO testdb AS con2 USER testuser;
|
EXEC SQL CONNECT TO testdb AS con2 USER testuser;
|
||||||
EXEC SQL CONNECT TO testdb AS con3 USER testuser;
|
EXEC SQL CONNECT TO testdb AS con3 USER testuser;
|
||||||
|
|
||||||
EXEC SQL DISCONNECT CURRENT; /* close con3 */
|
EXEC SQL DISCONNECT CURRENT; /* close con3 */
|
||||||
|
EXEC SQL DISCONNECT DEFAULT; /* close DEFAULT */
|
||||||
EXEC SQL DISCONNECT ALL; /* close con2 and con1 */
|
EXEC SQL DISCONNECT ALL; /* close con2 and con1 */
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -7752,11 +7770,11 @@ SET CONNECTION [ TO | = ] <replaceable class="parameter">connection_name</replac
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry id="ecpg-sql-set-connection-current">
|
<varlistentry id="ecpg-sql-set-connection-default">
|
||||||
<term><literal>CURRENT</literal></term>
|
<term><literal>DEFAULT</literal></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Set the connection to the current connection (thus, nothing happens).
|
Set the connection to the default connection.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
@ -494,8 +494,13 @@ expand_single_inheritance_child(PlannerInfo *root, RangeTblEntry *parentrte,
|
|||||||
childrte->inh = false;
|
childrte->inh = false;
|
||||||
childrte->securityQuals = NIL;
|
childrte->securityQuals = NIL;
|
||||||
|
|
||||||
/* No permission checking for child RTEs. */
|
/*
|
||||||
childrte->perminfoindex = 0;
|
* No permission checking for the child RTE unless it's the parent
|
||||||
|
* relation in its child role, which only applies to traditional
|
||||||
|
* inheritance.
|
||||||
|
*/
|
||||||
|
if (childOID != parentOID)
|
||||||
|
childrte->perminfoindex = 0;
|
||||||
|
|
||||||
/* Link not-yet-fully-filled child RTE into data structures */
|
/* Link not-yet-fully-filled child RTE into data structures */
|
||||||
parse->rtable = lappend(parse->rtable, childrte);
|
parse->rtable = lappend(parse->rtable, childrte);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user