Monday, 1 January 2024

ERROR: trailing junk after numeric literal at or near

 

Error : ERROR:  trailing junk after numeric literal at or near


Solution: Enter/specify the parameter value in "" 


Example: 

postgres=# show work_mem;

 work_mem

----------

 4MB

(1 row)


postgres=# set work_mem = 8MB;

ERROR:  trailing junk after numeric literal at or near "8M"

LINE 1: set work_mem = 8MB;

                       ^

postgres=# set work_mem = "8MB";

SET

postgres=# show work_mem;

 work_mem

----------

 8MB

(1 row)


postgres=#


No comments:

Post a Comment

Login to the database as user C##GGUSER failed because of error Error while trying to retrieve text for error ORA-01804.

 Error :  2026-09-19 11:28:18  ERROR   OGG-00303  Unable to connect to database using user C##GGUSER@CDB. Ensure that the necessary privileg...