@@ -1520,20 +1520,6 @@ describeTableDetails(const char *pattern, bool verbose, bool showSystem)
1520
1520
if (!res )
1521
1521
return false;
1522
1522
1523
- if (PQntuples (res ) == 0 )
1524
- {
1525
- if (!pset .quiet )
1526
- {
1527
- if (pattern )
1528
- pg_log_error ("Did not find any relation named \"%s\"." ,
1529
- pattern );
1530
- else
1531
- pg_log_error ("Did not find any relations." );
1532
- }
1533
- PQclear (res );
1534
- return false;
1535
- }
1536
-
1537
1523
for (i = 0 ; i < PQntuples (res ); i ++ )
1538
1524
{
1539
1525
const char * oid ;
@@ -1720,14 +1706,6 @@ describeOneTableDetails(const char *schemaname,
1720
1706
if (!res )
1721
1707
goto error_return ;
1722
1708
1723
- /* Did we get anything? */
1724
- if (PQntuples (res ) == 0 )
1725
- {
1726
- if (!pset .quiet )
1727
- pg_log_error ("Did not find any relation with OID %s." , oid );
1728
- goto error_return ;
1729
- }
1730
-
1731
1709
tableinfo .checks = atoi (PQgetvalue (res , 0 , 0 ));
1732
1710
tableinfo .relkind = * (PQgetvalue (res , 0 , 1 ));
1733
1711
tableinfo .hasindex = strcmp (PQgetvalue (res , 0 , 2 ), "t" ) == 0 ;
@@ -3763,6 +3741,7 @@ describeRoles(const char *pattern, bool verbose, bool showSystem)
3763
3741
return false;
3764
3742
3765
3743
nrows = PQntuples (res );
3744
+
3766
3745
attr = pg_malloc0 ((nrows + 1 ) * sizeof (* attr ));
3767
3746
3768
3747
printTableInit (& cont , & myopt , _ ("List of roles" ), ncols , nrows );
@@ -5404,20 +5383,6 @@ listTSParsersVerbose(const char *pattern)
5404
5383
if (!res )
5405
5384
return false;
5406
5385
5407
- if (PQntuples (res ) == 0 )
5408
- {
5409
- if (!pset .quiet )
5410
- {
5411
- if (pattern )
5412
- pg_log_error ("Did not find any text search parser named \"%s\"." ,
5413
- pattern );
5414
- else
5415
- pg_log_error ("Did not find any text search parsers." );
5416
- }
5417
- PQclear (res );
5418
- return false;
5419
- }
5420
-
5421
5386
for (i = 0 ; i < PQntuples (res ); i ++ )
5422
5387
{
5423
5388
const char * oid ;
@@ -5782,20 +5747,6 @@ listTSConfigsVerbose(const char *pattern)
5782
5747
if (!res )
5783
5748
return false;
5784
5749
5785
- if (PQntuples (res ) == 0 )
5786
- {
5787
- if (!pset .quiet )
5788
- {
5789
- if (pattern )
5790
- pg_log_error ("Did not find any text search configuration named \"%s\"." ,
5791
- pattern );
5792
- else
5793
- pg_log_error ("Did not find any text search configurations." );
5794
- }
5795
- PQclear (res );
5796
- return false;
5797
- }
5798
-
5799
5750
for (i = 0 ; i < PQntuples (res ); i ++ )
5800
5751
{
5801
5752
const char * oid ;
@@ -6257,20 +6208,6 @@ listExtensionContents(const char *pattern)
6257
6208
if (!res )
6258
6209
return false;
6259
6210
6260
- if (PQntuples (res ) == 0 )
6261
- {
6262
- if (!pset .quiet )
6263
- {
6264
- if (pattern )
6265
- pg_log_error ("Did not find any extension named \"%s\"." ,
6266
- pattern );
6267
- else
6268
- pg_log_error ("Did not find any extensions." );
6269
- }
6270
- PQclear (res );
6271
- return false;
6272
- }
6273
-
6274
6211
for (i = 0 ; i < PQntuples (res ); i ++ )
6275
6212
{
6276
6213
const char * extname ;
@@ -6604,22 +6541,6 @@ describePublications(const char *pattern)
6604
6541
return false;
6605
6542
}
6606
6543
6607
- if (PQntuples (res ) == 0 )
6608
- {
6609
- if (!pset .quiet )
6610
- {
6611
- if (pattern )
6612
- pg_log_error ("Did not find any publication named \"%s\"." ,
6613
- pattern );
6614
- else
6615
- pg_log_error ("Did not find any publications." );
6616
- }
6617
-
6618
- termPQExpBuffer (& buf );
6619
- PQclear (res );
6620
- return false;
6621
- }
6622
-
6623
6544
for (i = 0 ; i < PQntuples (res ); i ++ )
6624
6545
{
6625
6546
const char align = 'l' ;
0 commit comments