# PG::UndefinedTable: שגיאה: היחס "pg\_range" אינו קיים

**URL:** <https://meta.discourse.org/t/pg-error-relation-pg-range-does-not-exist/251451>\
**Category:** Development\
**Created:** [11 בינואר,‏ 2023,‏ 6:34pm UTC](https://meta.discourse.org/t/pg-error-relation-pg-range-does-not-exist/251451 "2023-01-11T18:34:01Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![joecooldoo](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@joecooldoo](https://meta.discourse.org/u/joecooldoo)\
**Post date:** [11 בינואר,‏ 2023,‏ 7:23pm UTC](https://meta.discourse.org/t/pg-error-relation-pg-range-does-not-exist/251451/8 "2023-01-11T19:23:44Z")

</div>

Well, now I’m getting a different error:

```plaintext
[Warning] Discourse recommends developing using Ruby v3.1.3 or above. You are using v2.7.6.
We could not find your database: postgres. Which can be found in the database configuration file located at config/database.yml.

To resolve this issue:

- Did you create the database for this app, or delete it? You may need to create your database.
- Has the database name changed? Check your database.yml config has the correct database name.

To create your database, run:

        bin/rails db:create
Couldn't create 'discourse_development' database. Please check your configuration.
rake aborted!
ActiveRecord::NoDatabaseError: We could not find your database: postgres. Which can be found in the database configuration file located at config/database.yml.

To resolve this issue:

- Did you create the database for this app, or delete it? You may need to create your database.
- Has the database name changed? Check your database.yml config has the correct database name.

To create your database, run:

        bin/rails db:create
/home/joecooldoo/.rbenv/versions/2.7.6/bin/bundle:25:in `load'
/home/joecooldoo/.rbenv/versions/2.7.6/bin/bundle:25:in `<main>'

Caused by:
PG::ConnectionBad: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
        Is the server running locally and accepting connections on that socket?
/home/joecooldoo/.rbenv/versions/2.7.6/bin/bundle:25:in `load'
/home/joecooldoo/.rbenv/versions/2.7.6/bin/bundle:25:in `<main>'
Tasks: TOP => db:create
(See full trace by running task with --trace)

```

---

_[View the full topic](https://meta.discourse.org/t/pg-error-relation-pg-range-does-not-exist/251451)._
