Saturday, December 18, 2010

PostgreSQL Functions

Functions and its Description:
  1. pg_affected_rows — Returns number of affected records (tuples)
  2. pg_cancel_query — Cancel an asynchronous query
  3. pg_client_encoding — Gets the client encoding
  4. pg_close — Closes a PostgreSQL connection
  5. pg_connect — Open a PostgreSQL connection
  6. pg_connection_busy — Get connection is busy or not
  7. pg_connection_reset — Reset connection (reconnect)
  8. pg_connection_status — Get connection status
  9. pg_convert — Convert associative array values into suitable for SQL statement
  10. pg_copy_from — Insert records into a table from an array
  11. pg_copy_to — Copy a table to an array
  12. pg_dbname — Get the database name
  13. pg_delete — Deletes records
  14. pg_end_copy — Sync with PostgreSQL backend
  15. pg_escape_bytea — Escape a string for insertion into a bytea field
  16. pg_escape_string — Escape a string for insertion into a text field
  17. pg_execute — Sends a request to execute a prepared statement with given parameters, and waits for the result.
  18. pg_fetch_all_columns — Fetches all rows in a particular result column as an array
  19. pg_fetch_all — Fetches all rows from a result as an array
  20. pg_fetch_array — Fetch a row as an array
  21. pg_fetch_assoc — Fetch a row as an associative array
  22. pg_fetch_object — Fetch a row as an object
  23. pg_fetch_result — Returns values from a result resource
  24. pg_fetch_row — Get a row as an enumerated array
  25. pg_field_is_null — Test if a field is SQL NULL
  26. pg_field_name — Returns the name of a field
  27. pg_field_num — Returns the field number of the named field
  28. pg_field_prtlen — Returns the printed length
  29. pg_field_size — Returns the internal storage size of the named field
  30. pg_field_table — Returns the name or oid of the tables field
  31. pg_field_type_oid — Returns the type ID (OID) for the corresponding field number
  32. pg_field_type — Returns the type name for the corresponding field number
  33. pg_free_result — Free result memory
  34. pg_get_notify — Gets SQL NOTIFY message
  35. pg_get_pid — Gets the backend's process ID
  36. pg_get_result — Get asynchronous query result
  37. pg_host — Returns the host name associated with the connection
  38. pg_insert — Insert array into table
  39. pg_last_error — Get the last error message string of a connection
  40. pg_last_notice — Returns the last notice message from PostgreSQL server
  41. pg_last_oid — Returns the last row's OID
  42. pg_lo_close — Close a large object
  43. pg_lo_create — Create a large object
  44. pg_lo_export — Export a large object to file
  45. pg_lo_import — Import a large object from file
  46. pg_lo_open — Open a large object
  47. pg_lo_read_all — Reads an entire large object and send straight to browser
  48. pg_lo_read — Read a large object
  49. pg_lo_seek — Seeks position within a large object
  50. pg_lo_tell — Returns current seek position a of large object
  51. pg_lo_unlink — Delete a large object
  52. pg_lo_write — Write to a large object
  53. pg_meta_data — Get meta data for table
  54. pg_num_fields — Returns the number of fields in a result
  55. pg_num_rows — Returns the number of rows in a result
  56. pg_options — Get the options associated with the connection
  57. pg_parameter_status — Looks up a current parameter setting of the server.
  58. pg_pconnect — Open a persistent PostgreSQL connection
  59. pg_ping — Ping database connection
  60. pg_port — Return the port number associated with the connection
  61. pg_prepare — Submits a request to create a prepared statement with the given parameters, and waits for completion.
  62. pg_put_line — Send a NULL-terminated string to PostgreSQL backend
  63. pg_query_params — Submits a command to the server and waits for the result, with the ability to pass parameters separately from the SQL command text.
  64. pg_query — Execute a query
  65. pg_result_error_field — Returns an individual field of an error report.
  66. pg_result_error — Get error message associated with result
  67. pg_result_seek — Set internal row offset in result resource
  68. pg_result_status — Get status of query result
  69. pg_select — Select records
  70. pg_send_execute — Sends a request to execute a prepared statement with given parameters, without waiting for the result(s).
  71. pg_send_prepare — Sends a request to create a prepared statement with the given parameters, without waiting for completion.
  72. pg_send_query_params — Submits a command and separate parameters to the server without waiting for the result(s).
  73. pg_send_query — Sends asynchronous query
  74. pg_set_client_encoding — Set the client encoding
  75. pg_set_error_verbosity — Determines the verbosity of messages returned by pg_last_error and pg_result_error.
  76. pg_trace — Enable tracing a PostgreSQL connection
  77. pg_transaction_status — Returns the current in-transaction status of the server.
  78. pg_tty — Return the TTY name associated with the connection
  79. pg_unescape_bytea — Unescape binary for bytea type
  80. pg_untrace — Disable tracing of a PostgreSQL connection
  81. pg_update — Update table
  82. pg_version — Returns an array with client, protocol and server version (when available)

No comments:

Post a Comment