| From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> | 
|---|---|
| To: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> | 
| Cc: | Erik Rijkers <er(at)xs4all(dot)nl>, Michael Paquier <michael(at)paquier(dot)xyz>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, DUVAL REMI <REMI(dot)DUVAL(at)cheops(dot)fr>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> | 
| Subject: | Re: proposal: schema variables | 
| Date: | 2024-10-25 20:38:01 | 
| Message-ID: | CAFj8pRAjU-X6rEE9=1++PdtXOPc2uo=yu-tcFXByi-kN3B_7Vw@mail.gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers pgsql-performance | 
Hi
čt 24. 10. 2024 v 10:29 odesílatel Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
napsal:
> ... and here is a review for patch 4
>
> I didn't change any code, just added the odd article to a comment.
>
> While running the regression tests with "make installcheck", I noticed two
> problems:
>
>   ---
> /home/laurenz/postgresql/src/test/regress/expected/session_variables.out
> 2024-10-24 11:14:06.717663613 +0300
>   +++
> /home/laurenz/postgresql/src/test/regress/results/session_variables.out
> 2024-10-24 11:15:37.999286228 +0300
>   @@ -30,6 +30,7 @@
>    GRANT ALL ON SCHEMA svartest TO regress_variable_owner;
>    CREATE VARIABLE svartest.var1 AS int;
>    CREATE ROLE regress_variable_reader;
>   +ERROR:  role "regress_variable_reader" already exists
>
> I suggest that patch 0001 should drop role "regress_variable_reader" again.
>
I did it,
>
>   @@ -107,7 +108,7 @@
>    CONTEXT:  SQL function "sqlfx" statement 1
>    SELECT plpgsqlfx(20);
>    ERROR:  permission denied for session variable var1
>   -CONTEXT:  SQL expression "$1 + var1"
>   +CONTEXT:  PL/pgSQL expression "$1 + var1"
>
> That looks like bit rot from your commit 4af123ad45.
>
fixed
merged your changes of comments
>
> Yours,
> Laurenz Albe
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kirill Reshke | 2024-10-25 21:03:32 | Re: Change COPY ... ON_ERROR ignore to ON_ERROR ignore_row | 
| Previous Message | Tristan Partin | 2024-10-25 20:24:46 | Re: cpluspluscheck complains about use of register | 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2024-10-26 06:28:16 | Re: Unexpected Performance for the Function simplify_function | 
| Previous Message | SAMEER KUMAR | 2024-10-25 12:09:45 | Re: lwlock:LockManager wait_events |