Skip to content

Dev/auth xact #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .cirrus.tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ task:
chown root:postgres /tmp/cores
sysctl kern.corefile='/tmp/cores/%N.%P.core'
setup_additional_packages_script: |
pkg install -y curl
#pkg install -y ...

# NB: Intentionally build without -Dllvm. The freebsd image size is already
# large enough to make VM startup slow, and even without llvm freebsd
Expand Down Expand Up @@ -445,10 +445,8 @@ task:
EOF

setup_additional_packages_script: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y install \
libcurl4-openssl-dev \
libcurl4-openssl-dev:i386 \
#apt-get update
#DEBIAN_FRONTEND=noninteractive apt-get -y install ...

matrix:
# SPECIAL:
Expand Down Expand Up @@ -837,8 +835,8 @@ task:
folder: $CCACHE_DIR

setup_additional_packages_script: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y install libcurl4-openssl-dev
#apt-get update
#DEBIAN_FRONTEND=noninteractive apt-get -y install ...

###
# Test that code can be built with gcc/clang without warnings
Expand Down
4 changes: 2 additions & 2 deletions doc/src/sgml/func.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -17345,14 +17345,14 @@ ERROR: value too long for type character(2)
<indexterm>
<primary>json_strip_nulls</primary>
</indexterm>
<function>json_strip_nulls</function> ( <parameter>target</parameter> <type>jsonb</type>, <optional>,<parameter>strip_in_arrays</parameter> <type>boolean</type> </optional> )
<function>json_strip_nulls</function> ( <parameter>target</parameter> <type>json</type> <optional>,<parameter>strip_in_arrays</parameter> <type>boolean</type> </optional> )
<returnvalue>json</returnvalue>
</para>
<para role="func_signature">
<indexterm>
<primary>jsonb_strip_nulls</primary>
</indexterm>
<function>jsonb_strip_nulls</function> ( <parameter>target</parameter> <type>jsonb</type>, <optional>,<parameter>strip_in_arrays</parameter> <type>boolean</type> </optional> )
<function>jsonb_strip_nulls</function> ( <parameter>target</parameter> <type>jsonb</type> <optional>,<parameter>strip_in_arrays</parameter> <type>boolean</type> </optional> )
<returnvalue>jsonb</returnvalue>
</para>
<para>
Expand Down
8 changes: 8 additions & 0 deletions doc/src/sgml/monitoring.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,14 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
see <xref linkend="wait-event-activity-table"/>.
</entry>
</row>
<row>
<entry><literal>Auth</literal></entry>
<entry>The server process is waiting for an external system to
authenticate and/or authorize the client connection.
<literal>wait_event</literal> will identify the specific wait point;
see <xref linkend="wait-event-auth-table"/>.
</entry>
</row>
<row>
<entry><literal>BufferPin</literal></entry>
<entry>The server process is waiting for exclusive access to
Expand Down
10 changes: 6 additions & 4 deletions src/backend/access/gin/ginget.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,16 +558,18 @@ startScanKey(GinState *ginstate, GinScanOpaque so, GinScanKey key)
qsort_arg(entryIndexes, key->nentries, sizeof(int),
entryIndexByFrequencyCmp, key);

for (i = 1; i < key->nentries; i++)
key->entryRes[entryIndexes[i]] = GIN_MAYBE;
for (i = 0; i < key->nentries - 1; i++)
{
/* Pass all entries <= i as FALSE, and the rest as MAYBE */
for (j = 0; j <= i; j++)
key->entryRes[entryIndexes[j]] = GIN_FALSE;
for (j = i + 1; j < key->nentries; j++)
key->entryRes[entryIndexes[j]] = GIN_MAYBE;
key->entryRes[entryIndexes[i]] = GIN_FALSE;

if (key->triConsistentFn(key) == GIN_FALSE)
break;

/* Make this loop interruptible in case there are many keys */
CHECK_FOR_INTERRUPTS();
}
/* i is now the last required entry. */

Expand Down
7 changes: 6 additions & 1 deletion src/backend/access/gin/ginscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,13 @@ ginFillScanEntry(GinScanOpaque so, OffsetNumber attnum,
*
* Entries with non-null extra_data are never considered identical, since
* we can't know exactly what the opclass might be doing with that.
*
* Also, give up de-duplication once we have 100 entries. That avoids
* spending O(N^2) time on probably-fruitless de-duplication of large
* search-key sets. The threshold of 100 is arbitrary but matches
* predtest.c's threshold for what's a large array.
*/
if (extra_data == NULL)
if (extra_data == NULL && so->totalentries < 100)
{
for (i = 0; i < so->totalentries; i++)
{
Expand Down
Loading