Re: [postgresql-it] Escludere blob su restore?

  • From: simone nessuno <simonehp@xxxxxxxxx>
  • To: postgresql-it <postgresql-it@xxxxxxxxxxxxx>
  • Date: Mon, 11 Dec 2017 15:55:53 +0100

riprendo questo post per chiedere ulteriori lumi..
effettuando pg_restore -l nome.txt  non ho all'interno riferimento ai campi
blob che vorrei escludere, e comunque il parametro -t serve per le tabelle
intere,quando io in realtà non vorrei importare il campo blob di una
tabella,ma il resto dei campi si..c'è un modo?magari con un esempio?
grazie

2017-10-26 16:42 GMT+02:00 Antonio Conte <barbone67@xxxxxxxxx>:

* 26/10/2017, simone nessuno wrote :
   Ciao,
   ho un dump fatto con pg_dump (non all) che ÃƒÂ¨ bello cicciotto
perche ci
   sono tabelle con dei blob dentro..
   esiste con pg_restore un modo per dirgli magari escludere alcune
   tabelle (senza usare il -t altrimenti dovrei scrivere tutte le altre e
   sono tipo una cinquantina!) o di escludere proprio i blob?
   grazie

man pg_restore

-l
--list
List the contents of the archive. The output of this operation can be used
as input to the -L option.
Note that if filtering switches such as -n or -t are used with -l, they
will restrict the items
listed.

-L list-file
--use-list=list-file
Restore only those archive elements that are listed in list-file, and
restore them in the order they
appear in the file. Note that if filtering switches such as -n or -t are
used with -L, they will
further restrict the items restored.

list-file is normally created by editing the output of a previous -l
operation. Lines can be moved or
removed, and can also be commented out by placing a semicolon (;) at the
start of the line. See below
for examples.

--
Never try to teach a pig to sing.
It wastes your time and annoys the pig.
_______________________________________________
Postgresql-it mailing list
Postgresql-it@xxxxxxxxxxxxx
http://lists.psql.it/mailman/listinfo/postgresql-it




-- 

"Every night we hope and pray
That we can do enough to keep our love"
Noel Gallagher

Other related posts: