1

I have an RDS instance set up on AWS. I can't connect to the PostgreSQL database without issues.

When I try to run select statements against the table I am getting odd results. It just lists the logged in user. The table is User. I see that the table is inside of the public schema. I tried searching for SELECT * From public.User but that fails. What am I missing here? The table does exist because I can see it with data in PSequel I just wanted to query the data using select.

a_horse_with_no_name
  • 497,550
  • 91
  • 775
  • 843
user2385520
  • 103
  • 1
  • 11

1 Answers1

2

Try SELECT * FROM public."User";. Postgres lower-cases the table names if you don't put quotes around them. I'd just make all my tables lower-case to avoid the trouble.

sudo
  • 5,085
  • 5
  • 37
  • 71