# 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:** 1

<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,‏ 6:34pm UTC](https://meta.discourse.org/t/pg-error-relation-pg-range-does-not-exist/251451/1 "2023-01-11T18:34:01Z")

</div>

I am following the guide here:

> [@Install Discourse on Windows for development](https://meta.discourse.org/t/install-discourse-on-windows-10-for-development/75149):
>
> information_source This tutorial has been tested on Windows 10 and 11. To set up a development environment for Discourse on Windows, you can do it using [Windows Subsystem for Linux](https://msdn.microsoft.com/en-us/commandline/wsl/install-win10) feature. This setup requires the WSL 2 installation. It is only available in Windows 10 builds 18917 or higher. We’ll assume that you already installed [Windows Subsystem for Linux 2 (Ubuntu)](https://docs.microsoft.com/en-us/windows/wsl/install) on your Windows 10 system. WARNING: Install Ubuntu 18.04, and not 20.04 since some installations will fail on 20.04. For m…

When I run `bundle exec rake db:create` it just errors out and says:

```plaintext
[Warning] Discourse recommends developing using Ruby v3.1.3 or above. You are using v2.7.6.
PG::UndefinedTable: ERROR: relation "pg_range" does not exist
LINE 3: LEFT JOIN pg_range as r ON oid = rngtypid
                  ^
Couldn't create 'discourse_development' database. Please check your configuration.
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "pg_range" does not exist
LINE 3: LEFT JOIN pg_range as r ON oid = rngtypid
                  ^
/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::UndefinedTable: ERROR: relation "pg_range" does not exist
LINE 3: LEFT JOIN pg_range as r ON oid = rngtypid
                  ^
/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)

```

What do I do?  
I am using WSL 2 and Ubuntu 18.04.5, and PostgreSQL version 9.2

---

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