How to change a statefulset namespace

I have two statefulset’s for a postgres DB

  • postgres
  • postgres-replica

They are currently deployed in a namespace gitlab-managed-apps

I want to change the namespace of these statefulsets to postgres

how would I achieve this, without loosing data. I don’t currently have any pods referencing the statefulsets service.