You're right, thanks!
Wen Yi
wen...@qq.com
---Original---
From: "David G. Johnston"
Hi hackers,
I am trying to design a new "pg_get_functiondef" function extension, like this:
CREATE FUNCTION pg_get_functiondef(OID, VARIADIC OID[]) RETURNS TABLE (OID oid,
pg_get_functiondef text)
AS 'pg_get_functiondef', 'pg_get_functiondef_mul'
LANGUAGE C;
And I have read the
+| | |
| | Replication+| | |
| | Bypass RLS | | |
(3 rows)
And I submit my the patch, have a look?
Yours,
Wen Yi
-- Original --
From
I think the output need to change, like this:
postgres=# \du+
List of roles
Role name | Login | Attributes | Password | Valid until | Connection limit |
Description
---+---+-+--+-+--+
-
2023-07-26 22:16:17.489 CST [83554] LOG: database system is ready to
accept connections
[postgres@fedora postgres]$ psql
psql (17devel)
Type "help" for help.
postgres=# \q
[postgres@fedora postgres]$
----------
Can someone notice this problem?
Thanks in advance
Yours,
Wen Yi
postgres --check -D /home/beginnerc/pgsql/data
[beginnerc@bogon devel]$
[beginnerc@bogon devel]$ echo $?
0
That's confused me, until I print the return value.
So I think we should add this tip.
I fix and recommit the patch, thanks very much for your reply.
Yours,
Wen Yi
SetProcessingMode(NormalProcessing);
CheckerModeMain();
abort();
}
Instead of
if (check_only)
{
SetProcessingMode(NormalProcessing);
CheckerModeMain();
printf("PostgreSQL check success,
there's no problem\n");
abort();
}
Hi hackers,
I am learning the MemoryContext subsystem, but I really don't know where
to find it's document (The PostgreSQL Document just provide some spi function).
Can someone provide me some solutions?
Thanks in advance!
Yours,
Wen Yi