Skip to content

support parameter "autosave" in DSN when connect to pg #7629

@kuchaguangjie

Description

@kuchaguangjie

Describe the feature

  1. I delete a column, without restart the server, and get following error:

    gorm cached plan must not change result type (SQLSTATE 0A000)

  2. According to this post: https://stackoverflow.com/a/48536394, I tried to add param autosave=conservative into DSN for pg, then when start got error:

    failed to connect database: unrecognized configuration parameter "autosave" (SQLSTATE 42704)

So, can gorm try to support the autosave option in DSN for pg ?

Motivation

So than if db changed a bit, I don't have to restart the server.

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions