You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is Pentazocine and explain in detail?
Pentazocine, sold under the brand name Talwin among others, is a painkiller used to treat moderate to severe pain. It is believed to work by activating (agonizing) κ-opioid receptors (KOR) and μ-opioid receptors (MOR). As such it is called an opioid as it delivers its effects on pain by interacting with the opioid receptors. It shares many of the side effects of other opioids like constipation, nausea, itching, drowsiness and respiratory depression, but unlike most other opioids it fairly frequently causes hallucinations, nightmares and delusions. It is also, unlike most other opioids, subject to a ceiling effect, which is when at a certain dose (which differs from person-to-person) no more pain relief, or side effects, is obtained by increasing the dose any further.Chemically it is classed as a benzomorphan and it comes in two enantiomers, which are molecules that are exact (non-superimposable) mirror images of one another.
It was patented in 1960 and approved for medical use in 1964. Usually, in its oral formulations, it is combined with naloxone so as to prevent people from crushing the tablets, dissolving them in a solvent (like water) and injecting them for a high (as orally administered naloxone produces no opioid-negating effects, whereas intravenous or intramuscular administration does).

Use
Medical
Pentazocine is used primarily to treat pain, although its analgesic effects are subject to a ceiling effect. It has been discontinued by its corporate sponsor in Australia, although it may be available through the special access scheme.

Recreational
In the 1970s, recreational drug users discovered that combining pentazocine with tripelennamine (a first-generation ethylenediamine antihistamine most commonly dispensed under the brand names Pelamine and Pyribenzamine) produced a euphoric sensation. Since tripelennamine tablets are typically blue in color and brand-name Pentazocine is known as Talwin (hence "Ts"), the pentazocine/tripelennamine combination acquired the slang name Ts and blues.
After health-care professionals and drug-enforcement officials became aware of this scenario, the mu opioid receptor antagonist naloxone was added to oral preparations containing pentazocine to prevent perceived "misuse" via injection, and the reported incidence of its recreational use has declined precipitously since.

Research
In an open-label, add-on, single-day, acute-dose small clinical study, pentazocine was found to rapidly and substantially reduce symptoms of mania in individuals with bipolar disorder that were in the manic phase of the condition. It was postulated that the efficacy observed was due to κ-opioid receptor activation-mediated amelioration of hyperdopaminergia in the reward pathways. Minimal sedation and no side effects including psychotomimetic effects or worsening of psychosis were observed at the dose administered.

Adverse effects
Side effects are similar to those of morphine, but pentazocine, due to its action at the kappa opioid receptor is more likely to invoke psychotomimetic effects. High dose may cause high blood pressure or high heart rate. It may also increase cardiac work after myocardial infarction when given intravenously and hence this use should be avoided where possible. Respiratory depression is a common side effect, but is subject to a ceiling effect, such that at a certain dose the degree of respiratory depression will no longer increase with dose increases. Likewise rarely it has been associated with agranulocytosis, erythema multiforme and toxic epidermal necrolysis.

Tissue damage at injection sites
Severe injection site necrosis and sepsis has occurred (sometimes requiring amputation of limb) with multiple injection of pentazocine lactate. In addition, animal studies have demonstrated that Pentazocine is tolerated less well subcutaneously than intramuscularly.

History
Pentazocine was developed by the Sterling Drug Company, Sterling-Winthrop Research Institute, of Rensselaer, New York. The analgesic compound was first made at Sterling in 1958. U.S. testing was conducted between 1961 and 1967.It was approved by the Food and Drug Administration in June 1967 after being favorably reviewed following testing on 12,000 patients in the United States.  By mid 1967 Pentazocine was already being sold in Mexico, England, and Argentina, under different trade names.

Society and culture
Legal status
Pentazocine was originally unclassified under the Controlled Substances Act