Re: Unify drop-by-OID functions - Mailing list pgsql-hackers

From Ranier Vilela
Subject Re: Unify drop-by-OID functions
Date
Msg-id CAEudQApy=Jah=bVFHkZYbc5AsePTibk12Z39wuZqPq4oJ3Mv4g@mail.gmail.com
Whole thread Raw
In response to Re: Unify drop-by-OID functions  (Ranier Vilela <ranier.vf@gmail.com>)
List pgsql-hackers
Only as a homework, is this function completely useless?

ItemPointerData
systable_scan_next(Relation heapRelation,
  Oid indexId,
  bool indexOK,
  Snapshot snapshot,
  int nkeys, ScanKey key)
{
    SysScanDesc scan;
HeapTuple htup;
ItemPointerData tid;

    scan = systable_beginscan(heapRelation, indexId, indexOK, snapshot, nkeys, key);
htup = systable_getnext(scan);
if (HeapTupleIsValid(htup))
        tid = &htup->t_self;
else
        tid = NULL;
    systable_endscan(scan);

return tid;
}

regards,
Ranier Vilela

pgsql-hackers by date:

Previous
From: Juan José Santamaría Flecha
Date:
Subject: Re: PG compilation error with Visual Studio 2015/2017/2019
Next
From: 邱宇航
Date:
Subject: Re: Optimization for hot standby XLOG_STANDBY_LOCK redo