# Relation "selected" does not exist with external Postgres

**URL:** <https://meta.discourse.org/t/relation-selected-does-not-exist-with-external-postgres/123761>\
**Category:** Self-hosting\
**Created:** [July 23, 2019, 6:01pm UTC](https://meta.discourse.org/t/relation-selected-does-not-exist-with-external-postgres/123761 "2019-07-23T18:01:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [July 23, 2019, 11:14pm UTC](https://meta.discourse.org/t/relation-selected-does-not-exist-with-external-postgres/123761/4 "2019-07-23T23:14:39Z")

</div>

> [@jhuddle1](#):
>
> When I go to the discourse database, there is no ‘selected’ table present.

That is expected, `selected` in this case is a [CTE](https://www.postgresql.org/docs/10/queries-with.html).

> [@jhuddle1](#):
>
> I already have a postgres server running elsewhere

What is the PostgreSQL version “elsewhere” ?

---

_[View the full topic](https://meta.discourse.org/t/relation-selected-does-not-exist-with-external-postgres/123761)._
