Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7623951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:50:09+00:00 2026-05-31T04:50:09+00:00

I have executed the following create statement using SQLWorkbench at my target postgresql database:

  • 0

I have executed the following create statement using SQLWorkbench at my target postgresql database:

  CREATE TABLE Config (    
  id serial  PRIMARY KEY,       
  pub_ip_range_low  varchar(100),       
  pub_ip_range_high varchar(100)            
  );

Right after table creation I request the table content by typing ‘select * from config;’ and see that table could be retrieved. Nevertheless, my java program that uses JDBC type 4 driver cannot access the table when I issue the same select statement in it. An exception is thrown when the program tries to access it which says says "Undefined relation" for the config table.

My questions are:

  1. Why sqlworkbench where I had previously run the create statement recognizes the table while my java program cannot find it?
  2. Where does the postgressql DBMS puts the tables I created? I don’t see them neither in public nor in information schema.

NOTE:
I checked target postgres database and cannot see the table Config anywhere although SQL workbench can query it. Then I opened another SQL workbench instance and noticed that the table cannot be queried (i.e. not found). So, my conclusion is that PostgreSQL puts the table I created in the first running SQLBench instance into some location that is bound to that session. Another SQL Workbench instance or my java program is not bound to session, so cannot query the previously created table config.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:50:10+00:00Added an answer on May 31, 2026 at 4:50 am

    Maybe the create failed on the extra trailing comma?

     CREATE TABLE config (
      id serial  PRIMARY KEY,       
      pub_ip_range_low  varchar(100),       
      pub_ip_range_high varchar(100)   -- >> ,           
      );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database with the following tables: create table Categories ( Id int
Let's say I have the following hypothetical data structure: create table country ( country_id
I have used following code to create a simple PDF file. It executes fine
I have the following loop inside an function init(); which is executed onload, I
I have used the following statements to get the current time. print $query executed
I have the following Python code: cursor.execute("INSERT INTO table VALUES var1, var2, var3,") where
I'm using the MySQL Connector/C++ library to insert values into a database table. I'm
I have the following select statement where I need to sum each task from
I have following js code: clientData.reloadTable( CreateCSV, /create/file ); $(#downloadFrame).attr(src,/download/download); In above code. first
I have a database using MySQL 2005. I have two tables, Enrolment and AlertMsg.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.