pgloader - number of input lines to read
Posted: Thu 14 Apr 2016 07:20
I want to read the fist line from the below data and need to insert in a table using pgloader.
The data is in fixed length flat file.
01000000820160408
0201FLINS
0203CERGY
0204ST-OUEN
0205VILLEROY
I am using the [fixed] section in the conf file for this purpose.
But unable to restrict the number of lines to be read.
1.I tried the option -C <count> in command line - it is throwing the error - "global name 'nb_lines' is not defined"
2.I added the section nb_lines=1 in the conf file, it is still showing "global name 'nb_lines' is not defined".
Please help me to resolve this issue.
Thanks in advance..
Musthafa
The data is in fixed length flat file.
01000000820160408
0201FLINS
0203CERGY
0204ST-OUEN
0205VILLEROY
I am using the [fixed] section in the conf file for this purpose.
But unable to restrict the number of lines to be read.
1.I tried the option -C <count> in command line - it is throwing the error - "global name 'nb_lines' is not defined"
2.I added the section nb_lines=1 in the conf file, it is still showing "global name 'nb_lines' is not defined".
Please help me to resolve this issue.
Thanks in advance..
Musthafa