# Aspire.Hosting.PostgreSQL

- Package: `Aspire.Hosting.PostgreSQL`
- Version: `13.2.0`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/aad16017893bd769e0634c47fb007f1454735f11/src/Aspire.Hosting.PostgreSQL)
- NuGet: [Aspire.Hosting.PostgreSQL](https://www.nuget.org/packages/Aspire.Hosting.PostgreSQL)

## Namespaces

### Aspire.Hosting

- [PostgresBuilderExtensions](/reference/api/csharp/aspire.hosting.postgresql/postgresbuilderextensions.md) -- `class` `static` -- Provides extension methods for adding PostgreSQL resources to an `Hosting.IDistributedApplicationBuilder`.

### Aspire.Hosting.ApplicationModel

- [PostgresDatabaseResource](/reference/api/csharp/aspire.hosting.postgresql/postgresdatabaseresource.md) -- `class` `ats export` -- A resource that represents a PostgreSQL database. This is a child resource of a [PostgresServerResource](/reference/api/csharp/aspire.hosting.postgresql/postgresserverresource.md).
- [PostgresServerResource](/reference/api/csharp/aspire.hosting.postgresql/postgresserverresource.md) -- `class` `ats export` -- A resource that represents a PostgreSQL container.

### Aspire.Hosting.Postgres

- [PgAdminContainerResource](/reference/api/csharp/aspire.hosting.postgresql/pgadmincontainerresource.md) -- `class` `sealed` -- Represents a container resource for PGAdmin.
- [PgWebContainerResource](/reference/api/csharp/aspire.hosting.postgresql/pgwebcontainerresource.md) -- `class` `sealed` -- Represents a container resource for pgweb.
- [PostgresMcpContainerResource](/reference/api/csharp/aspire.hosting.postgresql/postgresmcpcontainerresource.md) -- `class` `sealed` -- Represents a container resource for the Postgres MCP server.
