Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SQL function to get backendId for temp table #44

Open
robins opened this issue Jul 29, 2022 · 0 comments
Open

Add SQL function to get backendId for temp table #44

robins opened this issue Jul 29, 2022 · 0 comments

Comments

@robins
Copy link
Owner

robins commented Jul 29, 2022

https://github.com/postgres/postgres/blob/master/src/backend/catalog/namespace.c#L3313

/*

  • GetTempNamespaceBackendId - if the given namespace is a temporary-table
  • namespace (either my own, or another backend's), return the BackendId
  • that owns it. Temporary-toast-table namespaces are included, too.
  • If it isn't a temp namespace, return InvalidBackendId.
    */
    int
    GetTempNamespaceBackendId(Oid namespaceId)
    {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant