Skip to content

Create edb_dbo.mdx #6590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions advocacy_docs/pg_extensions/edb_dbo/edb_dbo.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: Configuring SQL Server dbo Schema
navTitle: Configuring SQL Server dbo Schema
---
Prior to Advanced Server 11, a system catalog named dbo was available. The dbo
system catalog contained views of database objects for similarity with Microsoft® SQL
Server®.
Now, for Advanced Server neither the dbo system catalog nor a schema named dbo exist
in any database.

If it is desired to have such a schema with its SQL Server compatible views, use the
`CREATE EXTENSION edb_dbo` command to create the dbo schema and its content.
The following example shows the creation of the dbo schema and its views:
```sql
edb=# CREATE EXTENSION edb_dbo;
CREATE EXTENSION
edb=# \dn
List of schemas
Name | Owner
--------+--------------
dbo | enterprisedb
public | enterprisedb
(2 rows)
edb=# SET search_path TO dbo;
SET
edb=# \dv
List of relations
Schema | Name | Type | Owner
--------+------------+------+--------------
```