| From: | Craig Ringer <ringerc(at)ringerc(dot)id(dot)au> |
|---|---|
| To: | 姜头 <104186179(at)qq(dot)com> |
| Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: How can i get record by data block not by sql? |
| Date: | 2011-10-04 13:09:05 |
| Message-ID: | 4E8B0571.2000100@ringerc.id.au |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 10/03/2011 05:03 PM, 姜头 wrote:
> How can i get record by data block not by sql?
> I want to read and write lots of data by data blocks, so i can form a
> disk-resident tree by recording the block address. But i don't know how
> to implement in postgresql.
> Is there system function can do this?
Now that I understand what you want better, I'd advise you to look at
the PostgreSQL storage manager (smgr) and buffer cache manager.
See:
https://github.com/postgres/postgres/tree/master/src/backend/storage/smgr
See also: http://developer.postgresql.org/pgdocs/postgres/history.html
for some historical but possibly still useful information.
--
Craig Ringer
| From | Date | Subject | |
|---|---|---|---|
| Next Message | marc_firth | 2011-10-04 13:38:53 | Re: Add quto increment to existing column |
| Previous Message | Craig Ringer | 2011-10-04 13:04:21 | Re: How can i get record by data block not by sql? |