Received: from malur.postgresql.org ([217.196.149.56])
by arkaria.postgresql.org with esmtps (TLS1.3) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
(Exim 4.96)
(envelope-from Hello, I wrote a script to analyze and run vac=
uum on tables that need it.
Sadly at the time I wrote the script, I never =
expected a schema name to be pure numbers.
So my Script does not work now.
I want to add double quote marks to each schem=
a name and table name select. I tried using the CONCAT function, but it d=
oes not work as I expected it to.
I would be grateful if someone can help me und=
erstand the mistake I am making with the CONCAT. Regards Ram
The table 7464128.locale_7464128 in database d=
ata listening on port 5432 with size 303104 must be vacuumed . It has a X=
ID gap of 5616 Use the command psql -p 5432 -d data -c "=
vacuum freeze 7464128.locale_7464128" ERROR: trailing junk after numeric liter=
al at or near "7464128.locale_7464128" LINE 1: vacuum freeze analyze 7464128.lo=
cale_7464128 &nbs=
p;  =
; ^ data=3D# =5Cdt *.locale_7464128 &nbs=
p; List of relations Schema | N=
ame | Type | Owner ---------+----------------+-------+=
;---------- 7464128 | locale_7464128 | table | postgres (1 row) data=3D# vacuum freeze analyze 7464128.locale_=
7464128 ; ERROR: trailing junk after numeric liter=
al at or near "7464128.locale_7464128" LINE 1: vacuum freeze analyze 7464128.locale_7=
464128 ; &nbs=
p;  =
; ^ data=3D# vacuum freeze analyze "7464128&q=
uot;."locale_7464128" ; VACUUM data=3D# =5Cq #Build the SQL needed to get the list of table=
s that are approaching the SAFE_XID_GAP LIST_OLDEST_UNFROZEN_XID_SQL=3D" SELECT&n=
bsp; =5C cast (age=
(PGCL.relfrozenxid) as integer) as GAP, =5C INTB.tabl=
e_catalog as DB_NAME, =5C "$PO=
RT_NO" , =5C
CONCAT(=27&quo=
t;=27,INTB.table_schema,=27"=27) || =27.=27 || =5C &=
nbsp; CONCAT(=27"=27,PGCL.relname,=27"=
=27) as TABLE_NAME, =5C pg_table_=
size(PGCL.oid) as TABLE_SIZE =5C FROM =
&=
nbsp; &n=
bsp; &nb=
sp; &nbs=
p; =5C pg_class PGCL,&=
nbsp; &n=
bsp; &nb=
sp; &nbs=
p; =5C information_sch=
ema.tables INTB &nbs=
p;  =
; =5C WHERE  =
; =
&=
nbsp; &n=
bsp; =
=5C PGCL.relname=3DINTB.t=
able_name &nbs=
p;  =
; =5C AND &=
nbsp; &n=
bsp; &nb=
sp; &nbs=
p;  =
; =5C PGCL.relkind=3D=27r=
=27 &nbs=
p;  =
; =
=5C AND &=
nbsp; &n=
bsp; &nb=
sp; &nbs=
p;  =
; =5C age(PGCL.relfrozenxid=
) > "$SAFE_XID_GAP" =5C ORDER BY &n=
bsp; &nb=
sp; &nbs=
p;  =
; =5C 1 D=
ESC ;" Zentralbereich Informationst=
echnologie Alte Leipziger Lebensversicherung a. G.<=
/SPAN>
Hallesche Krankenversicherung a. G.
______________________
ALH Gruppe
Alte Leipziger-Platz 1, 614=
40 Oberursel
Tel: +49 (6171) 66-4882
Fax: +49 (6171) 66-800-4882
E-Mail: ramachandran.subramanian@alte-leipziger.de
www.alte-leipziger.de
www.hallesche.de
Alte Leipziger Lebensversich= erung a. G., Alte Leipziger-Platz 1, 61440 Oberursel
Vors. des Aufsichtsra= ts: Dr. Walter Botermann =B7 Vorstand: Christoph Bohn (Vors.), Dr. J=FCrg= en Bierbaum (stv. Vors.), Frank Kettnaker, Dr. Jochen Kriegmeier, Alexand= er Mayer, Christian Pape, Wiltrud Pekarek, Udo WilcsekSitz Oberursel (Taunus) =B7 = Rechtsform VVaG =B7 Amtsgericht Bad Homburg v. d. H. HRB 1583 =B7 USt.-Id= Nr. DE 114106814
Hallesche Krankenversicherun= g a. G., L=F6ffelstra=DFe 34-38, 70597 Stuttgart
Vors. des Aufsichtsrats: Dr.= Walter Botermann =B7 Vorstand: Christoph Bohn (Vors.), Dr. J=FCrgen Bier= baum (stv. Vors.), Frank Kettnaker, Dr. Jochen Kriegmeier, Alexander Maye= r, Christian Pape, Wiltrud Pekarek, Udo Wilcsek
Sitz Stuttgart =B7 Rechtsfor= m VVaG =B7 Amtsgericht Stuttgart HRB 2686 =B7 USt.-IdNr. DE 147802285
Beitr=E4ge zu privaten Krank= en- und Pflegekrankenversicherungen unterliegen nicht der Versicherungste= uer (=A7 4 (1) Nr. 5 b VersStG) =B7 Versicherungsleistungen sowie Ums=E4t= ze aus Versicherungsvertreter-/Maklert=E4tigkeiten sind umsatzsteuerfrei<= /SPAN>
= Pflichtangaben der A= LH Gruppe gem=E4=DF =A7 35a GmbHG bzw. =A7 80 AktG= P> --_000_b91203df511b42c6850ec55c84ab6525alteleipzigerde_--