minor fixes

This commit is contained in:
Felix Kunde 2022-01-26 14:04:17 +01:00
parent 31ec300f87
commit 2630d8eff3
2 changed files with 14 additions and 14 deletions

View File

@ -36,19 +36,19 @@ rules:
- list - list
- watch - watch
# all verbs allowed for event streams (Zalando-internal feature) # all verbs allowed for event streams (Zalando-internal feature)
#- apiGroups: # - apiGroups:
# - zalando.org # - zalando.org
# resources: # resources:
# - fabriceventstreams # - fabriceventstreams
# verbs: # verbs:
# - create # - create
# - delete # - delete
# - deletecollection # - deletecollection
# - get # - get
# - list # - list
# - patch # - patch
# - update # - update
# - watch # - watch
# to create or get/update CRDs when starting up # to create or get/update CRDs when starting up
- apiGroups: - apiGroups:
- apiextensions.k8s.io - apiextensions.k8s.io

View File

@ -39,7 +39,7 @@ const (
createExtensionSQL = `CREATE EXTENSION IF NOT EXISTS "%s" SCHEMA "%s"` createExtensionSQL = `CREATE EXTENSION IF NOT EXISTS "%s" SCHEMA "%s"`
alterExtensionSQL = `ALTER EXTENSION "%s" SET 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 FROM pg_publication p
JOIN pg_publication_tables pt ON pt.pubname = p.pubname JOIN pg_publication_tables pt ON pt.pubname = p.pubname
GROUP BY p.pubname;` GROUP BY p.pubname;`