diff --git a/manifests/operator-service-account-rbac.yaml b/manifests/operator-service-account-rbac.yaml index 882ad7281..c10dc5fd7 100644 --- a/manifests/operator-service-account-rbac.yaml +++ b/manifests/operator-service-account-rbac.yaml @@ -36,19 +36,19 @@ rules: - list - watch # all verbs allowed for event streams (Zalando-internal feature) -#- apiGroups: -# - zalando.org -# resources: -# - fabriceventstreams -# verbs: -# - create -# - delete -# - deletecollection -# - get -# - list -# - patch -# - update -# - watch +# - apiGroups: +# - zalando.org +# resources: +# - fabriceventstreams +# verbs: +# - create +# - delete +# - deletecollection +# - get +# - list +# - patch +# - update +# - watch # to create or get/update CRDs when starting up - apiGroups: - apiextensions.k8s.io diff --git a/pkg/cluster/database.go b/pkg/cluster/database.go index bb640ade0..6121fac70 100644 --- a/pkg/cluster/database.go +++ b/pkg/cluster/database.go @@ -39,7 +39,7 @@ const ( createExtensionSQL = `CREATE EXTENSION IF NOT EXISTS "%s" SCHEMA "%s"` alterExtensionSQL = `ALTER EXTENSION "%s" SET SCHEMA "%s"` - getPublicationsSQL = `SELECT p.pubname, string_agg(pt.schemaname || . || pt.tablename, ', ' ORDER BY pt.schemaname, pt.tablename) + getPublicationsSQL = `SELECT p.pubname, string_agg(pt.schemaname || '.' || pt.tablename, ', ' ORDER BY pt.schemaname, pt.tablename) FROM pg_publication p JOIN pg_publication_tables pt ON pt.pubname = p.pubname GROUP BY p.pubname;`