check the βhelpβ function where I had options to check βpsqlβ commands using β\?β
Using these credentials we can log into the postgres server
Querying the table information using \dt
Now use the select command from the flags table on public schema
select * from public.flags;
FLAG

π‘
picoCTF{L3arN_S0m3_5qL_t0d4Y_21c94904}